Skip to content

Add datasets_root to training config - #168

Open
OrianeN wants to merge 1 commit into
facebookresearch:mainfrom
OrianeN:dataset_root_name
Open

Add datasets_root to training config#168
OrianeN wants to merge 1 commit into
facebookresearch:mainfrom
OrianeN:dataset_root_name

Conversation

@OrianeN

@OrianeN OrianeN commented Nov 2, 2023

Copy link
Copy Markdown

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