based on yolo-high-level project (detect\pose\classify\segment\):include yolov5\yolov7\yolov8\ core ,improvement research ,SwintransformV2 and Attention Series. training skills, business customization, engineering deployment C
GNU General Public License v3.0
756
stars
145
forks
source link
AttributeError: 'LoadStreams' object has no attribute 'auto' #102
Traceback (most recent call last):
File "G:\myAl\yolo_research_v2.0.0\detect.py", line 269, in
main(opt)
File "G:\myAl\yolo_research_v2.0.0\detect.py", line 264, in main
run(*vars(opt))
File "H:\mysoft\anaconda3\envs\yolo_research\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(args, kwargs)
File "G:\myAl\yolo_research_v2.0.0\detect.py", line 109, in run
dataset = LoadStreams(source, img_size=imgsz, stride=stride, auto=pt, vid_stride=vid_stride)
File "G:\myAl\yolo_research_v2.0.0\utils\dataloaders.py", line 455, in init
s = np.stack([letterbox(x, self.img_size, stride=self.stride, auto=self.auto)[0].shape for x in self.imgs])
File "G:\myAl\yolo_research_v2.0.0\utils\dataloaders.py", line 455, in
s = np.stack([letterbox(x, self.img_size, stride=self.stride, auto=self.auto)[0].shape for x in self.imgs])
AttributeError: 'LoadStreams' object has no attribute 'auto'**
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
python detect.py --source 0
...
Traceback (most recent call last): File "G:\myAl\yolo_research_v2.0.0\detect.py", line 269, in
main(opt)
File "G:\myAl\yolo_research_v2.0.0\detect.py", line 264, in main
run(*vars(opt))
File "H:\mysoft\anaconda3\envs\yolo_research\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(args, kwargs)
File "G:\myAl\yolo_research_v2.0.0\detect.py", line 109, in run
dataset = LoadStreams(source, img_size=imgsz, stride=stride, auto=pt, vid_stride=vid_stride)
File "G:\myAl\yolo_research_v2.0.0\utils\dataloaders.py", line 455, in init
s = np.stack([letterbox(x, self.img_size, stride=self.stride, auto=self.auto)[0].shape for x in self.imgs])
File "G:\myAl\yolo_research_v2.0.0\utils\dataloaders.py", line 455, in
s = np.stack([letterbox(x, self.img_size, stride=self.stride, auto=self.auto)[0].shape for x in self.imgs])
AttributeError: 'LoadStreams' object has no attribute 'auto'**