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

About Datasets #20

Closed
songbingyue opened this issue Apr 7, 2023 · 1 comment
Closed

About Datasets #20

songbingyue opened this issue Apr 7, 2023 · 1 comment

Comments

@songbingyue
Copy link

Can I replace imagenet1k with another dataset?

@songbingyue songbingyue changed the title hello About Datasets Apr 7, 2023
@keyu-tian
Copy link
Owner

keyu-tian commented Apr 11, 2023

Yes, you can see https://github.com/keyu-tian/SparK/tree/main/pretrain#tutorial-for-pretraining-your-own-dataset.

The only thing needed to do is to replace the function build_dataset_to_pretrain in line54-75 of pretrain/utils/imagenet.py to yours. This function should return a Dataset object. You may use args like args.data_path and args.input_size to help build your dataset. And when runing experiment with main.sh you can use --data_path=... --input_size=... to specify them.

@keyu-tian keyu-tian mentioned this issue Apr 12, 2023
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