Giter Site home page Giter Site logo

Comments (10)

suhangpro avatar suhangpro commented on August 15, 2024

Since you use --eval pred, predictions should be written as normal images, black indicating background. Not quite sure what went wrong. You can try using --eval raw and inspect the raw predictions directly and see if they make sense, or you can set a breakpoint and see whether it's problem with the image encoding or the prediction itself.

from pacnet.

Amose-Yao avatar Amose-Yao commented on August 15, 2024

This is my error message.

Traceback (most recent call last):
File "/home/amose/anaconda3/envs/pacnet/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/amose/anaconda3/envs/pacnet/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/amose/Workspace/pt1/pacnet/task_semanticSegmentation/main.py", line 509, in
main()
File "/home/amose/Workspace/pt1/pacnet/task_semanticSegmentation/main.py", line 321, in main
assert last_epoch in snapshots_found
AssertionError

from pacnet.

suhangpro avatar suhangpro commented on August 15, 2024

@Amose-Yao This is an error irrelevant to the original issue. If there are weight files in the exp-root during the evaluation, the code is confused about which weight file to use. You can add an --overwrite flag to force using the specified weight file. Sorry that this is not better documented.

from pacnet.

Amose-Yao avatar Amose-Yao commented on August 15, 2024

Thanks for your patience. And one more question is how to get the backbone weights like 'fcn8s_from_caffe.pth'? After training I only got some weights named like 'adam_epoch*' and 'weights_epoch*'.

from pacnet.

suhangpro avatar suhangpro commented on August 15, 2024

Backbone weights are part of the full model so its updated weights are saved in weights_epoch* as well. An exception is CRF models with a frozen backbone (e.g. fcn8sfrozen_crf*), where the backbone is not updated so not stored in the full model.

from pacnet.

Amose-Yao avatar Amose-Yao commented on August 15, 2024

Could you please tell me how to train the model fcn8s? I use this script 'python -m task_semanticSegmentation.main --data-root data/voc --exp-root exp/voc/fcn8s --load-weights-backbone fcn8s_from_caffe.pth --train-split train11 --test-split val11_sbd --train-crop 449 --test-crop -1 --model fcn8s --epochs 40 --lr 0.001 --lr-steps 20' and I got many 'weights_epoch*' files in which the parameters are zeros.

from pacnet.

suhangpro avatar suhangpro commented on August 15, 2024

You should use --load-weights instead of --load-weights-backbone since now fcn8s is the model itself, not just the backbone.

from pacnet.

Amose-Yao avatar Amose-Yao commented on August 15, 2024

Hi, everytime I run your code, I would get such error message.
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=383 error=11 : invalid argument
Is this normal?

from pacnet.

suhangpro avatar suhangpro commented on August 15, 2024

This is not normal. A possible reason is the incompatible pytorch/Cuda version you are using (the main branch was originally developed for pytorch 0.4 and cuda9). Check out the "th14" branch if you are using the latest pytorch.

from pacnet.

fullsky-1995 avatar fullsky-1995 commented on August 15, 2024

Hi,
I have a question for you when I trainning the fcn8spac. How can me to trainning collectly? And I always get the error such as: RuntimeError: shape '[1, 256, 3, 3, 128, 128]' is invalid for input of size 38340864 at File pac.py, in forward in_mul_k = cols.view(bs, ch, *kernel.shape[2:]) * kernel. Did you meet the same error and how did you solve it?
My enviroment is Cuda 11.1 and pytorch 1.9, thanks very much!

from pacnet.

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.