Comments (2)
from u-2-net.
你好,在train的时候把图片resize 到320x320, 一方面是因为batch size在大于一的情况下需要batch内的图像保持统一的spatial size, 另外一方面resize到320x320,有助于network获取更大的感受野(在filter size和pooling operation 一定的情况下),输入图像resize的越小,相对而言感受野越大。在test的时候resize是为了保证其与训练数据在同一scale上。 Randomcrop是为了使得network 对于水平的translation更加的不敏感,从而一定程度上防止过拟合。你可以吧图像resize到320x320,但是分辨率低会对精度有影响,也可以尝试直接用原始分辨率,带来的问题可能是GPU memory不够,同时receptive field相对就变小了,也会影响精度,具体需要尝试,看哪中方式精度高就用哪个。
…
On Jul 5, 2020, at 9:25 PM, Julyliying @.**> wrote: Xuebin Qin, 您好: 感谢您的分享,真是一项很棒的工作。有一点小疑问想向您请教下,请问您train和test的时候为什么直接把图片resize到(320,320)呢?而不是保持图片的长宽比呢?是跟训练数据有关系还是如果保持长宽比的话,RandomCrop会影响图片中显著性物体的完整性?还是其他什么原因呢?我想训练自己的数据,我的应用场景是19201080分辨率的视频,并有一些该分辨率下的训练数据,请问您觉得train和test的size应该怎样调整最合适呢?多谢您的指点! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#45>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSGORIMN2WY2ABD47SX2DLR2E73JANCNFSM4ORGI3WQ.
好的。多谢您的解释与回复!!
from u-2-net.
Related Issues (20)
- Ai
- RuntimeError: unexpected EOF, The file might be corrupted
- 大佬,可以提供一下验证模型相关指标的代码吗? HOT 1
- RescaleT:Why not prioritize maintaining the aspect ratio
- Hi, when I run this code, I get strange errors in other detection tasks.The following is the warning where the error occurs
- Continue training, train my own model with U-2-Net, in between due to some reasons the training was interrupted or I want to strengthen an existing model, what should I do? Can you provide a 'Continue-training.py'? HOT 4
- Inference speed HOT 1
- 模型训练时间过长
- 对u2netp模型进行qat量化
- How can I input video or webcam in the test.py script?
- 能否麻烦将整个项目打个包(包含运行文件和预训练模型),集成一个 .bat 文件,点击运行即可使用? HOT 2
- 请问该模型只能输出二分类结果么?可以输出为多分类么?比如三分类 HOT 1
- Is it support person segmentation now? HOT 2
- 如何添加评价指标
- ImportError: cannot import name 'U2NET' from 'model' HOT 2
- Can' Access Human Segmentation Model Weights HOT 1
- Usage on cross platform mobile devices using tenser flow or pytourch ( Special on Flutter )
- 请问大家,我需要前景而非mask,该怎样修改代码呢,感谢
- /alueror: At least one stride in the given numpy aray is mepative, ad tensors with nepative strides are not curently suported. (You can probably work around this by making a copy of your array with array.copy( ).)
- u2net_train.py returning ValueError HOT 1
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 u-2-net.