GithubHelp home page GithubHelp logo

Comments (13)

Tramac avatar Tramac commented on July 30, 2024

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.

Tramac avatar Tramac commented on July 30, 2024

Hi, I have updated the code, you can try to download again.

from awesome-semantic-segmentation-pytorch.

82018303kazuma avatar 82018303kazuma commented on July 30, 2024

Hi, Thank you for your answer.

I will try to download again.

Thank you.

from awesome-semantic-segmentation-pytorch.

82018303kazuma avatar 82018303kazuma commented on July 30, 2024

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.

Tramac avatar Tramac commented on July 30, 2024

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.

82018303kazuma avatar 82018303kazuma commented on July 30, 2024

Hi, Thank you for your answer.

What is the version of cuda?

from awesome-semantic-segmentation-pytorch.

Tramac avatar Tramac commented on July 30, 2024

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.

82018303kazuma avatar 82018303kazuma commented on July 30, 2024

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.

Tramac avatar Tramac commented on July 30, 2024

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.

82018303kazuma avatar 82018303kazuma commented on July 30, 2024

It does not go well.
I try variously.

from awesome-semantic-segmentation-pytorch.

Tramac avatar Tramac commented on July 30, 2024

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.

Tramac avatar Tramac commented on July 30, 2024

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.

82018303kazuma avatar 82018303kazuma commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.