Git Product home page Git Product logo

detectauto's Issues

缺少utils文件

import sys
from utils.torch_utils import select_device
from models.common import DetectMultiBackend
from utils.datasets import *

这个utils文件夹没给啊

TypeError: warmup() got an unexpected keyword argument 'half'

请问发生错误该如何解决?

Fusing layers...
YOLOv5s_v6 summary: 213 layers, 7225885 parameters, 0 gradients
Exception in Tkinter callback
Traceback (most recent call last):
File "D:\anaconda3\envs\yolov5\lib\tkinter_init_.py", line 1892, in call
return self.func(*args)
File "detect_auto.py", line 265, in tes06
self.work()
File "detect_auto.py", line 198, in work
coordinates_list = self.run(image, model, self.device, self.half)
File "D:\anaconda3\envs\yolov5\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "detect_auto.py", line 60, in run
model.warmup(imgsz=(1, 3, *img_size), half=half) # warmup
TypeError: warmup() got an unexpected keyword argument 'half'

TypeError: DetectMultiBackend() takes no arguments

D:\Python\Python38\python.exe E:\detectAuto-main\detect_auto.py
Exception in Tkinter callback
Traceback (most recent call last):
File "D:\Python\Python38\lib\tkinter_init_.py", line 1883, in call
return self.func(*args)
File "E:\detectAuto-main\detect_auto.py", line 268, in tes06
self.work()
File "E:\detectAuto-main\detect_auto.py", line 188, in work
model = DetectMultiBackend(self.weights, device=self.device, dnn=self.dnn, data=self.data)
TypeError: DetectMultiBackend() takes no arguments

Process finished with exit code 0
请问这种是什么原因导致呢?

最新版yolov5运行缺少utils.datasets

(pytorch) C:\Users\liucheng\Documents\yolov\yolov5-master>python detect_auto.py
Traceback (most recent call last):
File "C:\Users\liucheng\Documents\yolov\yolov5-master\detect_auto.py", line 4, in
from utils.datasets import *
ModuleNotFoundError: No module named 'utils.datasets'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.