examples
                                
                                 examples copied to clipboard
                                
                                    examples copied to clipboard
                            
                            
                            
                        FileNotFoundError: Couldn't find any class folder in /content/train2014.
Your issue may already be reported! Please search on the issue tracker before creating one.
I wanna train new style model run this cmd
!unzip train2014.zip -d /content
!python /content/examples/fast_neural_style/neural_style/neural_style.py train --dataset /content/train2014 --style-image /content/A.jpg --save-model-dir /content --epochs 2 --cuda 1
Context
- Pytorch version:
- Operating System and version:
Your Environment
Colab https://colab.research.google.com/github/pytorch/xla/blob/master/contrib/colab/style_transfer_inference.ipynb#scrollTo=EozMXwIV9iOJ
got this error
Traceback (most recent call last):
File "/content/examples/fast_neural_style/neural_style/neural_style.py", line 249, in 
How can I fix it? thx
@sevaroy good catch! datasets.ImageFolder requires folder in this format: root/label_name/xxx.png. Here is a quick workaround: create a sub folder containing all images under train2014. e.g. train2014/no_label/xxx.png. The labels are not used in this examples anyway.
Please feel free to submit a PR to update the README accordingly. Otherwise, I will update it next week.
Looks like this is not fixed yet. Right? I can try fixing it and make a PR if no one else is working on it
Edit: I realized I mishandled the dataset which led to this error. After deleting the extracted folders, it was fixed. So, I guess there is no need to fix anything.