file missing for training stlt
Closed this issue · 4 comments
hello, I tried to train the stlt model but got some errors. I first run create_dataset.py to prepare dataset, after that, I canot find the videoid2size.json file, which however is necessary for running the code. How can I get this json file? Thanks a lot ~
Good catch. You can download the .json file from this link: https://drive.google.com/file/d/1ANaDAxXoA63CA9zXalnmaskqfO4cftW4/view?usp=sharing
Let me know if you encounter any other issues!
I just tested everything and it should work. What I did:
- Downloaded
train.json
andvalidation.json
indata/
from here. mkdir data/comp_annotations
.- Downloaded
detected_compositional_part1/2/3.json
indata/comp_annotations
from here . - Run
create_datasets.py
:
python src/create_datasets.py --train_data_path "data/train.json" --val_data_path "data/validation.json" --annotations_path "data/comp_annotations/"
the train_dataset.json
and val_dataset.json
should be dumped inside the data/
directory.
ps. I updated the README.md with better data preparation instructions and pushed small fix in create_datasets.py
(open()
missing inside json.load
).
Let me know how it goes!
I'm closing this issue, feel free to reopen if the problem persists.