Comments (2)
I can confirm that this error only appears if is_transform is set to False
If set to true, i got this error:
(pytorch27) learner@learner:meetshah1995/pytorch-semseg$ python train2.py --arch segnet --batch_size 1 --dataset pascal
Traceback (most recent call last):
File "train2.py", line 105, in <module>
train(args)
File "train2.py", line 61, in train
loss = cross_entropy2d(outputs, labels)
File "meetshah1995/pytorch-semseg/ptsemseg/loss.py", line 11, in cross_entropy2d
log_p = log_p[target.view(n, h, w, 1).repeat(1, h, w, c) >= 0]
File "/home/learner/.conda/envs/pytorch27/lib/python2.7/site-packages/torch/autograd/variable.py", line 471, in view
return View(*sizes)(self)
File "/home/learner/.conda/envs/pytorch27/lib/python2.7/site-packages/torch/autograd/_functions/tensor.py", line 98, in forward
result = i.view(*self.sizes)
RuntimeError: size '[1 x 256 x 256 x 1]' is invalid for input of with 196608 elements at /b/wheel/pytorch-src/torch/lib/TH/THStorage.c:59
I am just trying to get it running with the VOC2012 dataset. All dataset files are double checked.
Is there a way to get it running?
I also had to adapt the dependencies (requirements.txt) to:
matplotlib==2.0.0
numpy==1.13.1
scipy==0.19.0
torch
torchvision
tqdm
visdom
certifi
from pytorch-semseg.
No issue in present master.
from pytorch-semseg.
Related Issues (20)
- Where I run 'python train.py [-h] [--config [CONFIG]]' HOT 1
- pspnet training HOT 2
- About the speed results of ICNet
- SegNet on Pascal:: TypeError: default_collate: batch must contain tensors, numpy arrays, numbers, dicts or lists; HOT 1
- Any good results from SegNet? HOT 9
- ValueError: Segmentation map contained invalid class values HOT 2
- RecursionError: maximum recursion depth exceeded in __instancecheck__ HOT 1
- test.py error HOT 1
- Image shape changed to 352 from 360 in FRRN camvid HOT 3
- mscoco pre-trained model
- Any tip to train models from scratch using cityscape dataset? HOT 1
- Semantic Segmentation Tool
- benchmark_RELEASE
- Pretrained Models
- Problem while trying to train HardNet on CamVid dataset
- KeyError: 'name' HOT 2
- Where is model being saved after training?
- python-cdo HOT 1
- Poly learning rate scheduler not doing anything HOT 1
- Error in fcn8s_pascal.yml 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 pytorch-semseg.