carpedm20 / carpedm20/DCGAN-tensorflow

IndexError: list index out of range with custom dataset

Open
#254 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Hello all,
I am trying to run this on my own dataset of flowers, but I am getting this error,

> $ python main.py --dataset=flowares --train
> {'batch_size': 64,
> 'beta1': 0.5,
> 'checkpoint_dir': 'checkpoint',
> 'crop': False,
> 'dataset': 'flowares',
> 'epoch': 25,
> 'generate_test_images': 100,
> 'input_fname_pattern': '*.jpg',
> 'input_height': 108,
> 'input_width': None,
> 'learning_rate': 0.0002,
> 'output_height': 64,
> 'output_width': None,
> 'sample_dir': 'samples',
> 'train': True,
> 'train_size': inf,
> 'visualize': False}
> 2018-01-11 18:40:07.522922: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX
> Traceback (most recent call last):
> File "main.py", line 100, in
> tf.app.run()
> File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 48, in run
> _sys.exit(main(_sys.argv[:1] + flags_passthrough))
> File "main.py", line 78, in main
> sample_dir=FLAGS.sample_dir)
> File "/home/sohilparekh/Desktop/HardikC/DCGAN-tensorflow/model.py", line 78, in __init__
> imreadImg = imread(self.data[0])
> IndexError: list index out of range

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the command shown in the issue, then inspect main.py around line 78 and model.py around line 78, where the traceback reaches imread(self.data[0]). Trace how the custom dataset value is used to populate self.data and determine what prevents an image from being found; done means the command no longer raises IndexError for the reported dataset and the expected input files are handled.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.