llSourcell / how_to_convert_text_to_images

This is the code for "How to Convert Text to Images - Intro to Deep Learning #16' by Siraj Raval on YouTube
MIT License
158 stars 67 forks source link

where to change type #6

Open pratikkumar-mohite opened 5 years ago

pratikkumar-mohite commented 5 years ago

Traceback (most recent call last): |ETA: --:--:-- File "run_exp.py", line 68, in algo.train() File "/home/sakshi/Documents/Project-Final/Sample/stageI/trainer.py", line 346, in train num_embedding) File "/home/sakshi/Documents/Project-Final/Sample/stageI/misc/datasets.py", line 144, in next_batch sampled_images = self.transform(sampled_images) File "/home/sakshi/Documents/Project-Final/Sample/stageI/misc/datasets.py", line 78, in transform images[i][w1: w1 + self._imsize, h1: h1 + self._imsize, :] TypeError: slice indices must be integers or None or have an index method