-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Help! - AsserstionError - not a valid directory / randrange() (0,0, 0) #376
Comments
Two possible reasons: (1) Maybe you haven't placed the dataset in the path |
Thank you ! After sorting out the file directory like you mentioned, it moved on :) The training process started, but then I ran into 4 exceptions and 1 connection error -
When I trigger I am going through Q&A, and google-searching to solve the issues one by one :) |
Please look at the Q & A. |
Oooooh... I never thought about having 2 anaconda prompt windows open! Now I ran into a new error; I am referring to issue #194 |
I tried adding and I still get the same error;
Thank you for helping me along the way :) |
I don't know the solution. The command |
Okay thanks for looking into it 👍 Maybe I should try docker. |
Got this to run in Windows properly now! I changed the directories in image_folder.py, and downgraded the version of visdom. Thanks again ! :) |
How do you change the directories in image_folder.py! Can you kindly explain with code? Also could you kindly guide me how to downgrade the visdom's version using pip! |
AssertionError: ./datasets/dehazing\train is not a valid directory Can you kindly help me to fix this error! |
I think Windows has a different path format compared to Linux. Try something like |
I have the same question, have you ever solved this problem? can you kindly help me to fix this error? thank you! |
I have manually downloaded the maps dataset,
and ran the train command in Anaconda3 prompt (Windows 10 64bit).
I get the following error -
Traceback (most recent call last): File "train.py", line 9, in <module> data_loader = CreateDataLoader(opt) File "C:\Users\tyk12\Documents\2_CODE\pix2pix\pytorch-CycleGAN-and-pix2pix\data\__init__.py", line 46, in CreateDataLoader data_loader.initialize(opt) File "C:\Users\tyk12\Documents\2_CODE\pix2pix\pytorch-CycleGAN-and-pix2pix\data\__init__.py", line 58, in initialize self.dataset = create_dataset(opt) File "C:\Users\tyk12\Documents\2_CODE\pix2pix\pytorch-CycleGAN-and-pix2pix\data\__init__.py", line 39, in create_dataset instance.initialize(opt) File "C:\Users\tyk12\Documents\2_CODE\pix2pix\pytorch-CycleGAN-and-pix2pix\data\unaligned_dataset.py", line 19, in initialize self.A_paths = make_dataset(self.dir_A) File "C:\Users\tyk12\Documents\2_CODE\pix2pix\pytorch-CycleGAN-and-pix2pix\data\image_folder.py", line 26, in make_dataset assert os.path.isdir(dir), '%s is not a valid directory' % dir AssertionError: ./datasets/maps/trainA is not a valid directory
Thank you in advance!
The text was updated successfully, but these errors were encountered: