skyflynil/stylegan2

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

Closed this issue · 0 comments

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?