Xilinx / Vitis-AI-Tutorials

MIT License
358 stars 144 forks source link

Fix train-dataset extraction path #27

Open rajivbishwokarma opened 2 years ago

rajivbishwokarma commented 2 years ago

I encountered an error while executing the set_the_CATSvsDOGS_prj.py script after placing the kaggle-cats-vs-dogs.zip file inside the files directory.

The following error appears: (vitis-ai-caffe) Vitis-AI /workspace/tutorials/VAI-Caffe-ML-CATSvsDOGS/files > python set_the_CATSvsDOGS_prj.py -i $ML_DIR Archive: kaggle_dogs_vs_cats.zip inflating: /workspace/tutorials/VAI-Caffe-ML-CATSvsDOGS/files/input/sampleSubmission.csv inflating: /workspace/tutorials/VAI-Caffe-ML-CATSvsDOGS/files/input/test1.zip inflating: /workspace/tutorials/VAI-Caffe-ML-CATSvsDOGS/files/input/train.zip mv: cannot stat '/workspace/tutorials/VAI-Caffe-ML-CATSvsDOGS/files/input/kaggle_dogs_vs_cats/train': No such file or directory rm: cannot remove '/workspace/tutorials/VAI-Caffe-ML-CATSvsDOGS/files/input/kaggle_dogs_vs_cats': No such file or directory Traceback (most recent call last): File "set_the_CATSvsDOGS_prj.py", line 79, in <module> os.mkdir(path_root + "/input/jpg/cats") FileNotFoundError: [Errno 2] No such file or directory: '/workspace/tutorials/VAI-Caffe-ML-CATSvsDOGS/files/input/jpg/cats'

I have added few lines to extract the train.zip in the /input/kaggle_dogs_vs_cats/train directory.