-
Notifications
You must be signed in to change notification settings - Fork 30
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
The error "divsion by zero" #7
Comments
Hi @sunnydai, |
Oh, I see. The error occurs in division by "len(self.dataset)" Firstly, could you check your dataset path in "common/paths.py"?
Note that the paths should be replaced by actual your dataset paths. |
Option -g means the gpu id you want to use as below, Is your mask dataset which is generated by generate_windows.py also correct? #actual command to generate mask dataset
python generate_windows.py 256 1000 |
It maybe the failure of the loading of VGG model because the 'completing model loaded' is missed. And i find that the VGG model has been download, I don't konw why the error occur? |
Actually, 'Completion model' represents the trained model with this completion (in-painting) network, not the VGG model. It has been successful because you got 'ok' in the line of 64. |
Oh~In ‘train.py’ line 92, mask_path=''mask/256", if it should be mask_path=''mask/256/"? |
Let me confirm your path is correct again. Could you run the following commands?
|
mask_path=''mask/256" is correct. See here, |
Thanks for your patience! I have find the question. I make a mistake in "place2.py"~ |
Sorry for the inconvenience. It seems that you executed the code with CPU mode, right? |
Thank you very much! It is ok now! |
generate_result.py requires model path option, "--load_model" as below,
|
Thank you very much~ |
@sunnydai thank you for this thread. I followed the suggestions in this thread but still ran into the same issue. I changed my path and double-checked. I used a small dataset the "Small images (256 * 256) with easy directory structure" 21G one. It only has the train and val data set so I copied the val data and named it train_256. UPDATE: I changed my dataset paths to a different location and now running this#to check train data path
returns 1803460, I assume thats because of the different dataset but that's better than 0 which I used to get before. But the ZeroDivisionError: division by zero error persists. Can you please help? |
Excuse me! I'm new to the chainer framework and python. When i train with the command "python train.py", it always occur the error ''divsion by zero', i am confused! Hope your responce
The text was updated successfully, but these errors were encountered: