contribute data loading for object detection datasets with yolo data format
COLLABORATOR
Hi! The `imagefolder` script is already quite complex, so a standalone script sounds better. Also, I suggest we create an org on the Hub (e.g. `hf-loaders`) and store such scripts there for easier maintenance rather than having them as packaged modules (IMO only very generic loaders should be packaged). WDYT @lhoestq @albertvillanova @polinaeterna?
2022-07-12T17:50:43Z
https://github.com/huggingface/datasets/issues/4618#issuecomment-1182117217
https://api.github.com/repos/huggingface/datasets/issues/4618
IC_kwDODunzps5Gda1h
https://api.github.com/repos/huggingface/datasets/issues/comments/1182117217/reactions
2022-07-12T17:50:43Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1182117217
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
CONTRIBUTOR
@mariosasko sounds good to me!

2022-07-13T09:50:41Z
https://github.com/huggingface/datasets/issues/4618#issuecomment-1183012279
https://api.github.com/repos/huggingface/datasets/issues/4618
IC_kwDODunzps5Gg1W3
https://api.github.com/repos/huggingface/datasets/issues/comments/1183012279/reactions
2022-07-13T09:50:41Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1183012279
https://avatars.githubusercontent.com/u/16348744?v=4
https://api.github.com/users/polinaeterna/events{/privacy}
https://api.github.com/users/polinaeterna/followers
https://api.github.com/users/polinaeterna/following{/other_user}
https://api.github.com/users/polinaeterna/gists{/gist_id}
https://github.com/polinaeterna
polinaeterna
MDQ6VXNlcjE2MzQ4NzQ0
https://api.github.com/users/polinaeterna/orgs
https://api.github.com/users/polinaeterna/received_events
https://api.github.com/users/polinaeterna/repos
https://api.github.com/users/polinaeterna/starred{/owner}{/repo}
https://api.github.com/users/polinaeterna/subscriptions
User
https://api.github.com/users/polinaeterna
public
NONE
Thank you for the suggestion @mariosasko . I agree with the point, but I have a few doubts

1. How would the user access the script if it's not a part of the core codebase?
2. Could you direct me as to what will be the tasks I have to do to contribute to the code? As per my understanding, it would be like
    1. Create a new org "hf-loaders" and add you (and more HF people) to the org
    2. Add data loader script as a (model?)
    3. Test it with a dataset on HF hub
3. We should maybe brainstorm as to which public datasets have this format (YOLO type) and are the most important ones to test the script with. We can even add the datasets on HF Hub alongside the script
2022-07-14T09:59:44Z
https://github.com/huggingface/datasets/issues/4618#issuecomment-1184246200
https://api.github.com/repos/huggingface/datasets/issues/4618
IC_kwDODunzps5Glim4
https://api.github.com/repos/huggingface/datasets/issues/comments/1184246200/reactions
2022-07-14T09:59:44Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1184246200
https://avatars.githubusercontent.com/u/8406903?v=4
https://api.github.com/users/faizankshaikh/events{/privacy}
https://api.github.com/users/faizankshaikh/followers
https://api.github.com/users/faizankshaikh/following{/other_user}
https://api.github.com/users/faizankshaikh/gists{/gist_id}
https://github.com/faizankshaikh
faizankshaikh
MDQ6VXNlcjg0MDY5MDM=
https://api.github.com/users/faizankshaikh/orgs
https://api.github.com/users/faizankshaikh/received_events
https://api.github.com/users/faizankshaikh/repos
https://api.github.com/users/faizankshaikh/starred{/owner}{/repo}
https://api.github.com/users/faizankshaikh/subscriptions
User
https://api.github.com/users/faizankshaikh
public
COLLABORATOR
1. Like this: `load_dataset("hf-loaders/yolo", data_files=...)`
2. The steps would be:
    1. Create a new org `hf-community-loaders` (IMO a better name than "hf-loaders") and add me (as an admin)
    2. Create a new dataset repo `yolo` and add the loading script to it (`yolo.py`)
    3. Open a discussion to request our review
4. I like this idea. Another option is to add snippets that describe how to load such datasets using the `yolo` loader.
2022-07-21T14:09:41Z
https://github.com/huggingface/datasets/issues/4618#issuecomment-1191533643
https://api.github.com/repos/huggingface/datasets/issues/4618
IC_kwDODunzps5HBVxL
https://api.github.com/repos/huggingface/datasets/issues/comments/1191533643/reactions
2022-07-21T14:10:44Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1191533643
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
**Is your feature request related to a problem? Please describe.**
At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading standard object detection datasets ([original discussion here](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/discussions/2))

**Describe the solution you'd like**
I wrote a [custom script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_chess_pieces.py) to load dataset which has YOLO data format. 

**Describe alternatives you've considered**
The script can either be a standalone dataset builder, or a modified version of `ImageFolder`

**Additional context**
I would be happy to contribute to this, but I would do it at a very slow pace (maybe a month or two) as I have my exams approaching 😄 
