question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use different number of images

See original GitHub issue

Hello. I am using hd - celeba 384 dataset with provided 384_shortcut1_inject1_none_hd model. I am trying to use custom number of images instead of using all 202599 images. I tried to do the following: modify list_attr_celeba.txt file to only include first 20 images and put these 20 images in ./data/img_crop_celeba/*.jpg. However, this is the error I get:

TypeError: Input 'filename' of 'ReadFile' Op has type float32 that does not match expected type of string.

I also tried to train with only 20 images and get the same error. I get no errors when running train/test for all 202599 images.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
CastellanLiucommented, Feb 19, 2019

This TypeError may be caused by imporper list_attr_celeba.txt file (your custom list_attr_celeba.txt should have 40 labels in each line as the raw one). Also note that you should modify the numbers in data.py to fit your dataset. https://github.com/LynnHo/AttGAN-Tensorflow/blob/1792df6851c7e4d09bf0f1c9f5155fd7b0618d18/data.py#L197-L208

0reactions
githubusername001commented, Feb 20, 2019

That makes sense, thank you. Also, not to spam issues I will just ask here. What do I need to modify to save each new image separately rather than all in one file. I tried changing some code in lines 84 - 105 in test.py. However, I get different errors such as 'Tensor' object has no attribute.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to share name and photo in iMessage - Apple ID ...
I receive the following error, "Sharing Name and Photo is not available because multiple phone numbers are associated to your Apple ID.
Read more >
Why you might have a different count of images in Photos in ...
Why you might have a different count of images in Photos in different places · Choose File > New Smart Album. · Choose...
Read more >
Images not loading on iPhone? Here's how to fix it
Are images not loading in iMessage, Safari, and other iPhone apps? Check out all the reliable solutions to fix this issue.
Read more >
How To Fix People Not Getting Picture Messages ... - YouTube
Maybe this has happened with sending an MMS to another device, too? Well, it seems that sometimes this has something to do with...
Read more >
Fix Unable to Open JPEG Image - Unsupported File on ...
Learn how you can fix unable to open JPEG image on Android phone with error unsupported file message.FOLLOW US ON TWITTER: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found