taoxugit / AttnGAN

MIT License
1.33k stars 415 forks source link

AssertionError #9

Open leeeeeeo opened 6 years ago

leeeeeeo commented 6 years ago

Error message:

Total filenames: 11788 001.Black_footed_Albatross/Black_Footed_Albatross_0046_18.jpg Load from: ../data/birds/captions.pickle 1 10 Traceback (most recent call last): File "pretrain_DAMSM.py", line 247, in assert dataset AssertionError

Could you please help me solve this problem? @taoxugit

yokiqust commented 5 years ago

i have same problem, did you solve this?

XinCynthia commented 5 years ago

same, have you solved it?

leeeeeeo commented 5 years ago

@yokiqust @XinCynthia not yet.... I'm still waiting for the author...-.- @taoxugit

yokiqust commented 5 years ago

@leeeeeeo I solved this problem by unzip the file download from the their website.

leeeeeeo commented 5 years ago

@yokiqust Which file to unzip? The .pickle file ?

yokiqust commented 5 years ago

@leeeeeeo 忘了哪个了,这个错误是因为没有数据读入导致的

leeeeeeo commented 5 years ago

@yokiqust hhh...都是中国人说啥英语…好吧。回头我再看看…

saxenarohit commented 5 years ago

@leeeeeeo @XinCynthia Download the metadata file from Data step 1. and extract it in appropriate directory (birds or coco). Also, the metadata contains another zip in it - text.zip. Extract text.zip as well. Hope it helps

shaivaldalal commented 5 years ago

Set up the data folder to contain four things:

  1. 'train' folder. This contains 'filenames.pickle' for the training files
  2. 'test' folder. This should contain 'filenames.pickle' for the test files
  3. 'coco' folder. This should contain all the images from the coco dataset. (train, val and test)
  4. 'captions.pickle' (if you plan to use pre-trained models)

Update your configuration files in 'code/cfg/' to point to the parent directory of the 'coco' folder. E.g: if 'coco' folder is in 'data/coco/coco' path, put the 'data' path in your config files as 'data/coco'

sarathsp1729 commented 5 years ago

Sorry! But I am confused. I tried following the above suggestions, but I am still getting assertion error. Can someone post the directory structure required starting with ./AttGAN-master/. I want to: 1) Run the pre-trained model 2) Fine-tune the pre-trained model

bjente commented 5 years ago

Hello, I'm confused as well. I keep on getting the assertion error. Can anybody please help???

shaivaldalal commented 5 years ago

Sorry! But I am confused. I tried following the above suggestions, but I am still getting assertion error. Can someone post the directory structure required starting with ./AttGAN-master/. I want to:

  1. Run the pre-trained model
  2. Fine-tune the pre-trained model

Hello, I'm confused as well. I keep on getting the assertion error. Can anybody please help???

You're getting AssertionError since the dataset variable has not been set (no files exist in the path specified). Please go through the path that the variable takes and make sure that your data is in that path OR modify the path in your code.

18398639574 commented 4 years ago

Sorry! But I am confused. I tried following the above suggestions, but I am still getting assertion error. Can someone post the directory structure required starting with ./AttGAN-master/. I want to:

  1. Run the pre-trained model
  2. Fine-tune the pre-trained model

hello,have you solved this problem?

DeekshitaKamble commented 2 years ago

Can someone post the proper directory structure for birds dataset?