Comments (10)
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.
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.
@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.
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.
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.
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.
You should use --load-weights
instead of --load-weights-backbone
since now fcn8s is the model itself, not just the backbone.
from pacnet.
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.
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.
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)
- PacConv3d HOT 1
- Batch size HOT 1
- Reason for No ReLU HOT 1
- torch 1.4.0 cannot find type2backend HOT 12
- some basic questions HOT 3
- Debugging Error HOT 11
- Questions on using the CRF layer HOT 1
- JBU training error HOT 1
- Question about Transpose
- Pytorch 1.6 autocast HOT 2
- About "Native Implemention" HOT 6
- about the crf model HOT 3
- PacConv3d and AMP HOT 2
- Reason for scaling mask input HOT 1
- PAC_CRF step setting question HOT 2
- autocast support HOT 1
- Error with pacconv: trying to differentiate twice a function that was marked with @once_differentiable
- A question about updating the weight of the kernel HOT 2
- About how to train a fcn8spac from scratch, thanks
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 pacnet.