Comments (13)
Hi, Thank you for your question.
First, you can try change "from utils import download, makedirs" in pascal_voc.py to "from utils.filesystem import makedirs" and "from from utils.download import download".
I'm sorry for this error because i just push this project and there are some bugs.
from awesome-semantic-segmentation-pytorch.
Hi, I have updated the code, you can try to download again.
from awesome-semantic-segmentation-pytorch.
Hi, Thank you for your answer.
I will try to download again.
Thank you.
from awesome-semantic-segmentation-pytorch.
python train.py
Traceback (most recent call last):
File "train.py", line 177, in
trainer.train()
File "train.py", line 147, in train
if not args.Namespace:
AttributeError: 'Namespace' object has no attribute 'Namespace'
I can run this code(#if not args.no_eval:) without it, but I'm not sure how to fix this error.
&&&&
python eval.py
Testing model: fcn32s
Finished loading model!
File "eval.py", line 90, in
eval(args)
File "eval.py", line 72, in eval
outputs = model(image)
File "/home/atsushi/tensorflow/local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/home/atsushi/Pytorch/se/models/fcn.py", line 24, in forward
pool5 = self.features(x)
File "/home/atsushi/tensorflow/local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/home/atsushi/tensorflow/local/lib/python2.7/site-packages/torch/nn/modules/container.py", line 91, in forward
input = module(input)
File "/home/atsushi/tensorflow/local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/home/atsushi/tensorflow/local/lib/python2.7/site-packages/torch/nn/modules/conv.py", line 301, in forward
self.padding, self.dilation, self.groups)
RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same
I do not know why the size of input and output is not the same.
from awesome-semantic-segmentation-pytorch.
Hi, have you changed the code "image = image.to(device)"? This error means that input tensor is not on cuda.
from awesome-semantic-segmentation-pytorch.
Hi, Thank you for your answer.
What is the version of cuda?
from awesome-semantic-segmentation-pytorch.
The cuda version in my device is 8.0, but the version of cuda should not be the problem.
Is the training process over?
from awesome-semantic-segmentation-pytorch.
If you erase this code (if not args.Namespace: of train.py), the learning process over.
then, i obtained weight.
from awesome-semantic-segmentation-pytorch.
From the error log, the image tensor should be transferred to cuda.
You can try to change the codeoutputs = model(image)
to outputs = model(image.cuda())
if there is CUDA enabled.
from awesome-semantic-segmentation-pytorch.
It does not go well.
I try variously.
from awesome-semantic-segmentation-pytorch.
I'm sorry for these bugs, i will retrain and evaluate these code, please give me some time.
You can continue to post bug logs, i will try my best to help you!
from awesome-semantic-segmentation-pytorch.
Hi, I have fixed the bug in eval.py, you can try it again.
I am sorry for my carelessness.
from awesome-semantic-segmentation-pytorch.
Thanks for improving the code.
This was better than the code I improved myself.
However, the code here may be different depending on the person.
./weights to ~/.torch/models
./weights to ./torch/models
The overall code is great.
Thank you for the meaningful things.
from awesome-semantic-segmentation-pytorch.
Related Issues (20)
- Errors occured when running with multi-GPUs
- 为什么只能训练fcn系列的
- why " iteration=iteration+1" in train.py ?
- 有人能把模型跑到论文中的精度吗 HOT 1
- Why the performance dropped by half when use pytorch1.5 or the newer version?
- Hello! Is there any group number?
- 执行demo程序发生如下报错TypeError: __init__() got an unexpected keyword argument 'local_rank'怎么解决 HOT 2
- DenseASPP与官方代码似乎实现的不太一样(different implemantation with official code in DenseASPP)
- 有训练好的checkpoint吗
- 请问一下这个fcn32s_vgg16_pascal_voc.pth在哪里获取啊?根据readme的指示跑demo.py出现ValueError: Model file is not found. Downloading or trainning.
- bisenet cityscapes the miou is low
- VOC_aug里的mat格式标签怎么得到
- bisenet我只能跑到64左右,离论文里面的76差了很多,有人跑到哪个精度吗
- TypeError: init() got an unexpected keyword argument 'local_rank' HOT 2
- DeepLabV3+, the backbone can only use Xception, and other backbones cannot be selected HOT 1
- 预训练权重
- Dataset Directory Structure
- model file path issue. Getting error - ValueError: Model file is not found. Downloading or training. Please help!
- Anyone able to successfully execute it with ade20k dataset? Please help!
- RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.
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 awesome-semantic-segmentation-pytorch.