New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some problem when running test.py and train.py #58
Comments
It's not a |
Thanks you, so where should I put my file ? You means that when I successfully put my file, |
Because I did not see this problem pages before, so maybe I should find the answers here, thank you for your quickly reply. |
You're right, using |
Hello, I met this problem: I used the environment python=3.5 , pytorch1.0 , cuda=9.0 |
What's your OS? The code is only tested on Ubuntu 16.04 LTS. |
I used Ubuntu 18.04, so It can't run train.py and test.py on the Ubuntu 18.04 system? |
I'm not sure about this. |
Okay, I will first change the python 3.5 to python 3.6 first, sorry for bothering you so many times. |
Is the dataset well-prepared?
… On 25 Dec 2019, at 11:03 PM, pp00704831 ***@***.***> wrote:
Hello, I have changed my OS on Ubuntu 16.04, python=3.5, pytorch=1.0, cuda=9.0.
I used this to run codes:
python test.py --dataset pcontext
--model encnet --jpu --aux --se-loss
--backbone resnet50 --resume encnet_jpu_res50_pcontext.pth.tar --split val --mode testval
But an error happened:
ValueError: batch_size should be a positive integeral value, but got batch_size=0
I found that if i did not set any batch_size, it will be batch_size = 16 automatically , but the error still happened.
Thank you !
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <#58?email_source=notifications&email_token=ABULPVL65HNOCKPHMSLBMK3Q2NY2PA5CNFSM4J66ESO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHUNOPA#issuecomment-568907580>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABULPVJ6HGSZ3KKZ3WAD7JLQ2NY2PANCNFSM4J66ESOQ>.
|
Well... after I reinstalled the datasets , it could work smoothly. Thank you very much. |
Hello, I want to retrain on the model, but I want to use the checkpoint you have gave for testing Because I want to do some simple experiment I don't want to train too many epochs |
Please use |
Thanks you very much! I will try that. |
I have successfully modified it, but I still feel strange why we can not import the code from other ? |
There're 2 ways:
|
I got it! Thanks you. |
Hi, I am a beginner in deep learning.
Some problem occurred when I was running the code.
First, I use the command 「 tar -xvf encnet_jpu_res50_pcontext.pth.tar 」 to extract the tar file, but it fails.
Second, if i successfully extract the file and get checkpoint, which file should I put my checkpoint in ? Where should I extract my checkpoint file to?
Thank You!
The text was updated successfully, but these errors were encountered: