BEGAN-tensorflow
BEGAN-tensorflow copied to clipboard
Unable to train
Hi, I meet the same problem like this
_> File "main.py", line 44, in
main(config)
File "main.py", line 31, in main config.data_format, config.split) File "C:\Users\repon\Downloads\BEGAN-tensorflow\BEGAN-tensorflow\data_loader.py", line 21, in get_loader print(paths[0]) IndexError: list index out of rang_
I had run dowload.py , but it show the same error so i trace the code, i find that there is not "data_path" in config.py
Hi, I just tried it and it worked for me. The relevant parameter in config is '--data_dir' (it is used for the data_path parameter in utils.py). paths[0] should be 'data/CelebA/splits/train/<...>.jpg' if you did not change the '--data_dir' variable. Since path seems to be empty for you, check if the folder 'data/CelebA/splits/train/' exists and if it contains the jpgs. If not, download.py failed somehow.
It failed to construct the relative paths for me. I'm not exactly sure why. I manually called the check_link function in my own loop in the interpreter and it worked fine. Might have something to do with the relative-ness of the paths.
I had this issue as well. However, I noticed that my train
, test
, and value
directories were not properly filled on my machine. This was due to me using rsync
naively, which ignores symbolic links.
If you use rsync
, make sure to use the -l
option to include copying symbolic links. This fixed the issue for me.
rsync: -l, --links | copy symlinks as symlinks