How to use webcam

88 views
Skip to first unread message

이승준

unread,
May 3, 2022, 5:23:44 AM5/3/22
to VOT Challenge technical support
Use command
python run_webcam.py dimp dimp50
than
ImportError: DLL load failed:

(pytracking) C:\workspace\pytracking\pytracking>python run_webcam.py dimp dimp50
..\pytracking\features\preprocessing.py:109: UserWarning: __floordiv__ is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values. To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor').
  tl = posl - (szl - 1) // 2
..\pytracking\features\preprocessing.py:110: UserWarning: __floordiv__ is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values. To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor').
  br = posl + szl//2 + 1
Traceback (most recent call last):
  File "run_webcam.py", line 41, in <module>
    main()
  File "run_webcam.py", line 37, in main
    run_webcam(args.tracker_name, args.tracker_param, args.debug, visdom_info)
  File "run_webcam.py", line 22, in run_webcam
    tracker.run_webcam(debug, visdom_info)
  File "..\pytracking\evaluation\tracker.py", line 451, in run_webcam
    out = tracker.track(frame, info)
  File "..\pytracking\evaluation\multi_object_wrapper.py", line 165, in track
    out = self.trackers[obj_id].initialize(image, init_info_split[obj_id])
  File "..\pytracking\tracker\dimp\dimp.py", line 84, in initialize
    self.init_classifier(init_backbone_feat)
  File "..\pytracking\tracker\dimp\dimp.py", line 574, in init_classifier
    compute_losses=plot_loss)
  File "..\ltr\models\target_classifier\linear_filter.py", line 97, in get_filter
    weights = self.filter_initializer(feat, bb)
  File "C:\Anaconda3\envs\pytracking\lib\site-packages\torch\nn\modules\module.py", line 1110, in _call_impl
    return forward_call(*input, **kwargs)
  File "..\ltr\models\target_classifier\initializer.py", line 164, in forward
    weights = self.filter_pool(feat, bb)
  File "C:\Anaconda3\envs\pytracking\lib\site-packages\torch\nn\modules\module.py", line 1110, in _call_impl
    return forward_call(*input, **kwargs)
  File "..\ltr\models\target_classifier\initializer.py", line 45, in forward
    return self.prroi_pool(feat, roi1)
  File "C:\Anaconda3\envs\pytracking\lib\site-packages\torch\nn\modules\module.py", line 1110, in _call_impl
    return forward_call(*input, **kwargs)
  File "..\ltr\external\PreciseRoIPooling\pytorch\prroi_pool\prroi_pool.py", line 28, in forward
    return prroi_pool2d(features, rois, self.pooled_height, self.pooled_width, self.spatial_scale)
  File "..\ltr\external\PreciseRoIPooling\pytorch\prroi_pool\functional.py", line 50, in forward
    _prroi_pooling = _import_prroi_pooling()
  File "..\ltr\external\PreciseRoIPooling\pytorch\prroi_pool\functional.py", line 28, in _import_prroi_pooling
    _prroi_pooling = imp.load_module('prroi_pool', file, path, description)
  File "C:\Anaconda3\envs\pytracking\lib\imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Anaconda3\envs\pytracking\lib\imp.py", line 342, in load_dynamic
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 670, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 583, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 1043, in create_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed: 지정된 모듈을 찾을 수 없습니다.
[ WARN:0...@8.930] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (539) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback
Reply all
Reply to author
Forward
0 new messages