Skip to content

Commit

Permalink
Add Warmup to classification model
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienmartW committed Jan 22, 2024
1 parent fb101c7 commit c68902c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file added backend/src/Warmup.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion backend/src/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ def load_model_inference(model_path: str):
model_path (str): path to model (.pt file)
Returns:
Model: loaded model ready for prediction
Model: loaded model ready for prediction and Warmud-up
"""
model = YOLO(model_path)
test = Image.open("./Warmup.jpg")
model(test, verbose=False)
return model


Expand Down

0 comments on commit c68902c

Please sign in to comment.