I am new to object tracking. I went thru Jacobâs blog on Object Tracking and face an error below.
[29]
14s
#run zeroshot object tracking, point to your video and your detection engine
!python clip_object_tracker.py --source ./data/video/fish.mp4 --detection-engine yolov5
I get error below:
Namespace(agnostic_nms=False, api_key=None, augment=False, cfg=âyolov4.cfgâ, classes=None, confidence=0.4, detection_engine=âyolov5â, device=ââ, exist_ok=False, img_size=640, info=False, max_cosine_distance=0.4, name=âexpâ, names=âcoco.namesâ, nms_max_overlap=1.0, nn_budget=None, overlap=0.3, project=âruns/detectâ, save_conf=False, save_txt=False, source=â./data/video/fish.mp4â, thickness=3, update=False, url=None, view_img=False, weights=âyolov5s.ptâ)
Downloading https://github.com/ultralytics/yolov5/releases/download/v3.1/yolov5s.pt to yolov5s.ptâŚ
100% 14.5M/14.5M [00:00<00:00, 16.7MB/s]
Fusing layersâŚ
Using torch 1.12.1+cu113 CUDA:0 (Tesla T4, 15109.75MB)
Traceback (most recent call last):
File âclip_object_tracker.pyâ, line 360, in
detect()
File âclip_object_tracker.pyâ, line 141, in detect
_ = yolov5_engine.infer(img.half() if half else img) if device.type != âcpuâ else None # run once
File â/content/zero-shot-object-tracking/yolov5/zero-shot-object-tracking/utils/yolov5.pyâ, line 16, in infer
pred = self.model(img, augment=self.augment)[0]
File â/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.pyâ, line 1130, in _call_impl
return forward_call(*input, **kwargs)
File â/content/zero-shot-object-tracking/yolov5/zero-shot-object-tracking/models/yolo.pyâ, line 123, in forward
return self.forward_once(x, profile) # single-scale inference, train
File â/content/zero-shot-object-tracking/yolov5/zero-shot-object-tracking/models/yolo.pyâ, line 139, in forward_once
x = m(x) # run
File â/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.pyâ, line 1130, in _call_impl
return forward_call(*input, **kwargs)
File â/usr/local/lib/python3.7/dist-packages/torch/nn/modules/upsampling.pyâ, line 154, in forward
recompute_scale_factor=self.recompute_scale_factor)
File â/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.pyâ, line 1208, in getattr
type(self).name, name))
AttributeError: âUpsampleâ object has no attribute ârecompute_scale_factorâ

