cuiaiyu / dressing-in-order

(ICCV'21) Official code of "Dressing in Order: Recurrent Person Image Generation for Pose Transfer, Virtual Try-on and Outfit Editing" by Aiyu Cui, Daniel McKee and Svetlana Lazebnik
https://cuiaiyu.github.io/dressing-in-order
Other
513 stars 127 forks source link

AssertionError: data is not a valid directory #28

Closed stoneshi-1999 closed 2 years ago

stoneshi-1999 commented 2 years ago

Hi ! Cui , the work is really COOOOL ! Thanks for ur code. But after setting the environment,I am gonna set the dataset,when I Run python tools/generate_fashion_dataset.py --dataroot $DATAROOT to split the data. (which was the step3 in the Dataset)I met this error...Hope u can help me,thanks a lot❤


Traceback (most recent call last): File ".\tools\generate_fashion_datasets.py", line 77, in make_dataset(args.dataroot) File ".\tools\generate_fashion_datasets.py", line 31, in make_dataset assert os.path.isdir(dataroot), '%s is not a valid directory' % dataroot AssertionError: data is not a valid directory


Do I need to change the dataroot in the demo.ipynb? dataroot = '/shared/rsaas/aiyucui2/inshop/fashion_yifang'

cuiaiyu commented 2 years ago
  1. Please first mkdir $DATAROOT and copy the deepfahsion dataset and all other required files into $DATAROOT (so have $DATAROOT exists)

2.Yes, please change the opt.dataroot to the path where you have deepfashion dataset prepared. Thanks.