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

Dataset add relative path to an image #23

Open
wuyuanyi135 opened this issue Dec 16, 2019 · 0 comments
Open

Dataset add relative path to an image #23

wuyuanyi135 opened this issue Dec 16, 2019 · 0 comments

Comments

@wuyuanyi135
Copy link

Hello,

Thanks for creating this handy package! I have a suggestion. Is it a good idea to have a base_dir argument to the class Dataset, so that Dataset.add(str) can handle the relative path given by os.path.join(base_dir, rel_path). When load from an external file, the image_file paths will be concatenated by the base_dir to find the correct path.

I think this would be useful if one wants to create a self-contained dataset with relative paths.

Thanks.

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

1 participant