How to use the trained model and test it on another dataset?

I have trained a YOLOv5 model and would like to test it for detection on another database, I trained it using the RoboFlow source code.

I would like to know how I can get this model and test it somewhere else, is there any ready-made code that I can do this?

Hi Diego,

For your custom model, if you have saved the model weights, then you can use detect.py from YOLOv5 to run inference - just remember to clone the repository to your local machine. Here’s an example guide on running inference with your webcam:

There are more options available on the repository, outlined in the Documentation and the detect.py source code.

Additionally, here are our resources to help with performing inference using models trained with Roboflow Train:

Thank you!