You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far, I have created a basic set of 5 models (YOLOv5 nano through extra-large). We now need to add more such models to the obj_det_demo.py.
To create a new model, following the following structure:
classobj_det_pipeline_model_1(obj_det_evaluator, pipeline_model):
defload(self):
# Load your modelself.model=torch.hub.load('ultralytics/yolov5', 'yolov5s')
defpredict(self, x: dict) ->pd.DataFrame:
# x: dict whose keys are model name and values are the model prediction# returns: pd.DataFrame with the following colspredict_results= {
'xmin': [], 'ymin':[], 'xmax':[], 'ymax':[], 'confidence': [], 'name':[], 'image':[]
}
# TODO: Logicpredict_results=pd.DataFrame(predict_results)
returnpredict_resultsdefevaluate(self, x, y):
# Evaluation logic, returns results, press# Inherit from obj_det_evaluator if you don't need anything custompassdeftrain(self, dataset):
# TODO: Training, not implemented yetpass
Remember to add the newly created class to the obj_det_input = pipeline_input(...) at the very bottom of the obj_det_demo.py
So far, I have created a basic set of 5 models (YOLOv5 nano through extra-large). We now need to add more such models to the
obj_det_demo.py
.To create a new model, following the following structure:
Remember to add the newly created class to the
obj_det_input = pipeline_input(...)
at the very bottom of theobj_det_demo.py
ML_Ops_Pipeline/obj_det_demo.py
Lines 216 to 226 in e29ca6a
My demo implementation of YOLOv5 Model:
ML_Ops_Pipeline/obj_det_demo.py
Lines 128 to 158 in e29ca6a
The text was updated successfully, but these errors were encountered: