Skip to content

I RUN SAME CODE BUT I GET DIFFERENT ACCURACY #341

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

Open
1 of 2 tasks
Antoniodevy opened this issue Nov 23, 2024 · 1 comment
Open
1 of 2 tasks

I RUN SAME CODE BUT I GET DIFFERENT ACCURACY #341

Antoniodevy opened this issue Nov 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Antoniodevy
Copy link

Search before asking

  • I have searched the Roboflow Notebooks issues and found no similar bug report.

Notebook name

https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/train-rt-detr-on-custom-dataset-with-transformers.ipynb?ref=blog.roboflow.com#scrollTo=Fh5y-l8LJLIR

Bug

I RUN SAME CODE BUT I GET DIFFERENT ACCURACY

Environment

  • Google Colab

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@Antoniodevy Antoniodevy added the bug Something isn't working label Nov 23, 2024
@DolapoSalim
Copy link

Hello AntonioDevy,

During your training setup, try to set a random seed:

From Ulytralytics:
seed | int | default value is 0 | Sets the random seed for training, ensuring the reproducibility of results across runs with the same configurations.

e.g yolo detect train data=data.yaml model=yolov8n.pt epochs=100 imgsz=640 seed=42

With the seed value set at the same integer value, you can reproduce the same training result with the same code.
I hope this helps you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants