Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file missing for training stlt #1

Closed
patrolli opened this issue Feb 15, 2022 · 4 comments
Closed

file missing for training stlt #1

patrolli opened this issue Feb 15, 2022 · 4 comments

Comments

@patrolli
Copy link

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 ~

@gorjanradevski
Copy link
Owner

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!

@patrolli
Copy link
Author

Thanks! I encountered another problem but not sure is caused by this repo. When I finish running the create_dataset.py code, the dump size of the result json file is 0, as shown in figure.
image
I am not sure what is caused by, could you please provide the resutl json file? Thanks a lot ~

@gorjanradevski
Copy link
Owner

gorjanradevski commented Feb 17, 2022

I just tested everything and it should work. What I did:

  • Downloaded train.json and validation.json in data/ from here.
  • mkdir data/comp_annotations.
  • Downloaded detected_compositional_part1/2/3.json in data/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!

@gorjanradevski
Copy link
Owner

I'm closing this issue, feel free to reopen if the problem persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants