-
Notifications
You must be signed in to change notification settings - Fork 476
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
can you give a train.py file to train the detection model on custom dataset its complicated without it #929
Comments
Hello, I'm attaching here a general template. Fill-in your custom code: setup_device(multi_gpu=MultiGPUMode.OFF, num_gpus=1)
trainer = Trainer(experiment_name="my_experiment")
net = models.get(Models.YoloNAS_S, pretrained_weights="coco")
train_dataloader, val_dataloader = ... # YOUR DATALOADERS
training_hyperparams = ... # YOUR HYP
trainer.train(net, train_dataloader, val_dataloader, training_hyperparams) For the default training hyper-parameters of COCO, use: training_hyperparams = coco2017_yolox_train_params() |
@sachinbisht1 Ideally, if your data is stored in yolov5/8 or Coco Format, you can use actually work the code from the fine-tuning collab If not, and you need to use you own dataset object, you can just do as @NatanBagrov explained, just make sure to have your targets in format |
Instead of cloning the repo I tried again without cloning the repo and just installing the the GS but it does not have the object_names py file |
from super_gradients.training import Trainer During handling of the above exception, another exception occurred: Traceback (most recent call last): |
@sachinbisht1 you can try this one for custom dataset training https://www.youtube.com/watch?v=pmHW15tELZk |
The console stream is logged into /home/administrator/sg_logs/console.log During handling of the above exception, another exception occurred: Traceback (most recent call last): |
try installing chardet |
@sachinbisht1 Is it solved ? |
Hi, can you tell me about this assertion error |
@sachinbisht1 looks like it's not directly related to SuperGradients. |
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: