Skip to content
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

Fixed conda environment error and 'num_samples=0' error #10

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Dutra-Apex
Copy link

When trying to create a conda venv, I kept getting errors about the libraries not being found. To fix this I removed the build string from the environment.yml file. Code ran fine despite the change.

The second error was 'num_samples=0', and it happened when trying to run 'train.py' while passing a custom image and mask directory. The error was fixed by changing how the image_path and mask_path are created.

Hope this is helpful to anyone that might get the same problems.

Removed build strings from dependencies, as well as libraries that could not be found.
This allowed me to create a venv from the environment.yml file. Code ran fine despite changes.
Fixed 'num_samples = 0' error by changing how image_path and mask_path lists are created
@xinzihao
Copy link

D:\anaconda\envs\torch\python.exe D:\pythonProject12\workplace\AOT-GAN-for-Inpainting-master\AOT-GAN-for-Inpainting-master\src\train.py
[**] create folder ../experiments\aotgan_places2_pconv256
D:\anaconda\envs\torch\lib\site-packages\torchvision\models_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and will be removed in 0.15, please use 'weights' instead.
warnings.warn(
D:\anaconda\envs\torch\lib\site-packages\torchvision\models_utils.py:223: UserWarning: Arguments other than a weight enum or None for 'weights' are deprecated since 0.13 and will be removed in 0.15. The current behavior is equivalent to passing weights=VGG19_Weights.IMAGENET1K_V1. You can also use weights=VGG19_Weights.DEFAULT to get the most up-to-date weights.
warnings.warn(msg)
0%| | 0/10 [00:00<?, ?it/s] @Dutra-Apex May I ask how to solve this problem,thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants