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

using custom dataset #1825

Open
skpawar1305 opened this issue Feb 10, 2024 · 1 comment
Open

using custom dataset #1825

skpawar1305 opened this issue Feb 10, 2024 · 1 comment

Comments

@skpawar1305
Copy link

skpawar1305 commented Feb 10, 2024

📚 Documentation Improvement


import torch
  
class MyCustomDataset(torch.utils.data.Dataset):
    def __init__(self, train: bool, image_size: int):
        ...

    def __getitem__(self, item):
        ...
        return inputs, targets # Or inputs, targets, additional_batch_items

Hello, the above class is from the documentation to create a Custom Dataset without recipe. Without any example, it is very hard to understand what should I write, for a custom pose dataset.
Anyway, I converted yolonas_pose_n recipe to code with the given script, which is a big help to be honest, and then simply modified data_loaders. Can you please write the above example class with a better example?

Thank you

I'll attach the modified recipe to code just in case
train_coco2017_yolo_nas_n.zip

@BloodAxe
Copy link
Contributor

Thanks for reporting!

For pose estimation you can refer to this Notebook on how to make a new dataset: #1831

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