Comments (3)
By the way, I noticed that the default batch size in the program is set to 1. But when I try to increase the batch size value, I got
RuntimeError: stack expects each tensor to be equal size, but got [3, 512, 512] at entry 0 and [3, 342, 512] at entry 1
It seems that the code kept the aspect ratio of the original image when doing resize so that images in the same batch are of different sizes. I wonder that was your model trained with the batch size of 1? Thank you!
from dms.
plus --high-res
from dms.
@ntuLC Sorry for the late reply. Please take a look at the discussion of #21 (comment) and see if it solves this one. As @13331112522, you might be missing the --high-res
flag, as the pretrained weights are high-resolution ones. Also, please take into account that the dependencies of this project are very old and values may vary with latest releases of PyTorch/SRU.
Regarding the question about the batch size, we had to train our model with a batch size of 1, due to memory constraints and also due to the dynamic convolution computations which do not allow batch dimension computation.
from dms.
Related Issues (19)
- [Errno 2] No such file or directory: 'data/unc/corpus.pth' HOT 4
- ECCV objectives
- Getting very low mIoU using pre-trained weights for DMN HOT 6
- DataPrepare HOT 9
- I cannot not obtain your data. HOT 1
- Question of REFER HOT 6
- AttributeError: 'Program' object has no attribute '_program' HOT 2
- How much GPU does this work usually require? HOT 17
- The result problem HOT 4
- What impact it will have to adjust the size HOT 2
- Weights Fine Tuning HOT 40
- Dissect ViLSTM
- Why net.train() in evaluate function? HOT 2
- How to visualize the output? HOT 2
- Testing on Custom Dataset HOT 24
- No such file or directory: 'data\\unc\\corpus.pth'? what is this corpus.pth? Need download? HOT 2
- help me, can't download the referit_splits.tar.bz2 HOT 2
- Pretrained weights link seems to be down HOT 3
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 dms.