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

Add datasets_root to training config #168

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

OrianeN
Copy link

@OrianeN OrianeN commented Nov 2, 2023

By default, the full path to the sample images of the created datasets are the concatenation between the parent of the JSONL file, a subfolder named "arxiv", and the image path indicated in the JSONL file. For example, if the dataset path is "/path/to/exp_folder/train.jsonl", and the path to the first sample is "sample_paper/01.png", then the sample full path will be "/path/to/exp_folder/arxiv/sample_paper/01.png"

However, this root subfolder name "arxiv" is not indicated in the datasets creation tutorial in the README (instead we have "path/paired/output" or "images"), so when I tried to run the train.py script with my samples in a subfolder called "folder_paired", I got an error.

This PR enables the user to choose any subfolder name as "datasets_root" in the training config file.

I'm wondering if that's all that was implied in this TODO ?

# TODO improve naming conventions

By default, the datasets root folder was the concatenation between the parent of the JSONL file and "arxiv", yet this folder name is not indicated in the datasets creation tutorial in the README, so this commit enables the user to choose any subfolder name for the datasets root.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants