-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have problem with creating tfrecord file #6
base: master
Are you sure you want to change the base?
Conversation
Hi, Thanks! |
I have same question about creating our own data. |
you can do so by |
When I do this I get this error
|
try using the absolute path |
Still have AssertionError while using dataset_tool.py for Cifar10 dataset. any one could help? Traceback (most recent call last): |
Edit: I managed to solve myself. In my case some of my images were sRGB instead of RGB Did someone managed to solve the "Assertion Error" issue? I'm having the same problem as @amrbenattia
|
Thank you for your work. I have a related question. when I user cifar 10 dataset , I change max_label_size = 'full', code can run with labels. and I can also get img under different labels. when I create tfrecords formatted datasets from our own dataset,I can get *tfrecords and *labels,but I can not get img under different labels.The img from different labels are the same. any one could help me? |
@amrbenattia |
when i run python import_emample.py in linux ,there are small mistakes as follows: 2019-08-27 18:45:01.035566: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA During handling of the above exception, another exception occurred: Traceback (most recent call last): Errors may have originated from an input operation. |
In my case, I create a new .py file and do this: |
When I try to run create_celebahq function, the error about cryptography.fernet.InvalidToken occurs. I could not install libjpeg 8d, because this version is not available in Conda. It cannot find it. How can I solve this problem or how can I create Celeba_hq dataset from .dat files? |
I had this exact error too. I don't think sRGB is a problem (I ran a dataset with sRGB images which converted fine). Also, if images aren't RGB, the script will output an appropriate error message ("Input images must be stored as RGB or grayscale"). My resolution to this message was finding non-square images among thousands in the dataset. I had preprocessed my dataset images in photoshop before converting. I hadn't noticed that some of the images (that were pulled from around the internet) had non-square pixel aspect ratios. Photoshop had automatically corrected them to square (with Pixel Aspect Ratio Correction) while I was processing the images so that the aspect ratio wasn't immediately obvious. Once these images were squared up everything was fine. If you want to alter this script to tell you the image it fails on, add
Hope this helps future travelers. |
+1 |
I have received an assert error when I try to create the tfrecord. Could you help?
I could provide more details.