Skip to content

Commit

Permalink
Added model.eval which was missing before evalution the model (sony#1180
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Idan-BenAmi authored Aug 21, 2024
1 parent d7fee57 commit ed95fb2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@
"source": [
"from tutorials.mct_model_garden.models_pytorch.yolov8.yolov8 import ModelPyTorch, yaml_load, model_predict\n",
"cfg_dict = yaml_load(\"tutorials/mct_model_garden/models_pytorch/yolov8/yolov8n.yaml\", append_filename=True) # model dict\n",
"model = ModelPyTorch.from_pretrained(\"SSI-DNN/pytorch_yolov8n_detection_640x640\", cfg=cfg_dict)"
"model = ModelPyTorch.from_pretrained(\"SSI-DNN/pytorch_yolov8n_detection_640x640\", cfg=cfg_dict)\n",
"model.eval()"
],
"metadata": {
"collapsed": false
Expand Down

0 comments on commit ed95fb2

Please sign in to comment.