Comments (1)
这次commit是对PMTD中的plane clustering进行ablation study。模型还是使用pyramid label训练的模型,输出还是pyramid mask。但是框的预测方式并不是plane clustering,而是直接阈值截断。原则上阈值截断的边界应该是 pyramid mask的z值为0,但是为了鲁棒,我们把z的阈值改成了0.01。也就是说,这里的0.01是表达“通过阈值截断的方式获取文字边界”。
至于为什么sigmoid要从后处理移到主模型,原因是这样的:
当你做2分类任务时,
model.train()时,损失函数binary cross entropy实际对pred干了两件事:
pred = pred.sigmoid(); loss = -(gt * log pred + (1- gt) * log (1-pred))
。
而当model.eval()时,后处理对pred做了一件事:
pred = pred.sigmoid()
。
但是当你尝试回归pyramid mask \in [0, 1]
时,损失函数变成了L1 loss:
model.train()时,原来binary cross entropy帮你做的pred = pred.sigmoid()
,现在要自己做。
而当model.eval()时,由于主模型里有了pred = pred.sigmoid()
,所以后处理就不需要再次调用sigmoid了。
from pmtd.
Related Issues (20)
- where is INSTALL.md? where is the code? HOT 1
- OHEM implementation? HOT 4
- Too many open files
- how to create the soft mask label ? HOT 3
- RuntimeError: copy_if failed to synchronize: device-side assert triggered HOT 1
- the repo is empty?
- How to calculate out five dedicated aspect ratios on own dataset HOT 2
- why the output of network is none?
- RuntimeError: invalid argument 2: non-empty 4D input tensor expected but got: [0 x 256 x 14 x 14] HOT 3
- detectron2
- 之前发布的code有没有训练代码?
- how can i run it in windows?
- 请问可以商用吗?
- How to implement PMTD for ICDAR 2017 MLT? HOT 1
- test PMTD model on my dataset HOT 1
- Why is there no code now? HOT 1
- 执行test_net.py文件报错
- 关于其他数据集的训练格式及训练方法问题
- 关于训练遇到的问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pmtd.