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
It seems that yolort only supports anchors of length 3. For example, it will raise a RuntimeError if we directly call the anchors of length 4 that VOC uses by default. Maybe we should let the anchor configuration mechanism of yolort be more adaptable.
To Reproduce (REQUIRED)
fromyolort.modelsimportYOLOv5# Downloaded from https://github.com/ultralytics/yolov5/releases/download/v5.0/yolov5s-VOC.ptckpt_path_voc='yolov5s-VOC.pt'model=YOLOv5.load_from_yolov5(ckpt_path_voc, score_thresh=0.25, version="r4.0")
model.eval()
img_path='test/assets/bus.jpg'predictions=model.predict(img_path)
The text was updated successfully, but these errors were encountered:
🐛 Bug
It seems that
yolort
only supports anchors of length 3. For example, it will raise aRuntimeError
if we directly call the anchors of length 4 that VOC uses by default. Maybe we should let the anchor configuration mechanism ofyolort
be more adaptable.To Reproduce (REQUIRED)
The text was updated successfully, but these errors were encountered: