skyflynil / stylegan2

StyleGAN2 - Official TensorFlow Implementation with practical improvements
http://arxiv.org/abs/1912.04958
Other
120 stars 33 forks source link

in parse_tfrecord_np_raw: 0 IndexError: list index (0) out of range #22

Closed illiniguy23 closed 3 years ago

illiniguy23 commented 3 years ago

I converted a dataset of 912 JPEGs, measuring 1408x1152 (hxw) using this command: python dataset_tool.py create_from_images --res_log2=7 ./datasets/shots /content/stylegan2-colab/stylegan2/raw_images/shots/

Then, I attempted to begin training with this command: python run_training.py --num-gpus=1 --data-dir=./datasets --config=config-f --dataset=shots --mirror-augment=true --metric=none --total-kimg=1000 --min-h=11 --min-w=9 --res-log2=7 --result-dir="/content/stylegan2-colab/stylegan2/results"

But I received the following error almost immediately:

File "/content/stylegan2-colab/stylegan2/training/dataset.py", line 56, in parse_tfrecord_np_raw
    0
IndexError: list index (0) out of range

Did I do something wrong?