Code Monkey home page Code Monkey logo

detectauto_v7's Introduction

Anurag's GitHub stats

detectauto_v7's People

Contributors

mohenghui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

detectauto_v7's Issues

up主,这个没有生效,请问是什么原因呀

C:\Users\Acer.conda\envs\yolov7Demo1\python.exe D:/PyProj/yolo7/two/yolov7-main/detectAuto_v7-main/detect_auto.py
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Acer.conda\envs\yolov7Demo1\lib\tkinter_init_.py", line 1892, in call
return self.func(*args)
File "D:\PyProj\yolo7\two\yolov7-main\detectAuto_v7-main\detect_auto.py", line 293, in tes06
self.init_model()
File "D:\PyProj\yolo7\two\yolov7-main\detectAuto_v7-main\detect_auto.py", line 47, in init_model
self.model=attempt_load(self.weights, map_location=self.device)
File "D:\PyProj\yolo7\two\yolov7-main\models\experimental.py", line 252, in attempt_load
ckpt = torch.load(w, map_location=map_location) # load
File "C:\Users\Acer\AppData\Roaming\Python\Python39\site-packages\torch\serialization.py", line 712, in load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File "C:\Users\Acer\AppData\Roaming\Python\Python39\site-packages\torch\serialization.py", line 1046, in _load
result = unpickler.load()
File "C:\Users\Acer\AppData\Roaming\Python\Python39\site-packages\torch\serialization.py", line 1039, in find_class
return super().find_class(mod_name, name)
AttributeError: Can't get attribute 'C3' on <module 'models.common' from 'D:\PyProj\yolo7\two\yolov7-main\models\common.py'>
Fusing layers...
C:\Users\Acer\AppData\Roaming\Python\Python39\site-packages\torch_tensor.py:1104: UserWarning: The .grad attribute of a Tensor that is not a leaf Tensor is being accessed. Its .grad attribute won't be populated during autograd.backward(). If you indeed want the .grad field to be populated for a non-leaf Tensor, use .retain_grad() on the non-leaf Tensor. If you access the non-leaf Tensor by mistake, make sure you access the leaf Tensor instead. See github.com/pytorch/pytorch/pull/30531 for more informations. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\build\aten\src\ATen/core/TensorBody.h:475.)
return self._grad
Convert model to Traced-model...
traced_script_module saved!
model is traced!

C:\Users\Acer\AppData\Roaming\Python\Python39\site-packages\torch\functional.py:568: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\TensorShape.cpp:2228.)
return VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
frame_00001.jpg已标注完成
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Acer.conda\envs\yolov7Demo1\lib\tkinter_init
.py", line 1892, in call
return self.func(*args)
File "D:\PyProj\yolo7\two\yolov7-main\detectAuto_v7-main\detect_auto.py", line 294, in tes06
self.work()
File "D:\PyProj\yolo7\two\yolov7-main\detectAuto_v7-main\detect_auto.py", line 239, in work
if (self.predefined_classes.count(self.predefined_classes[label_id]) > 0):
IndexError: list index out of range

出现 错误了?

Traceback (most recent call last):
File "detect_auto.py", line 20, in
class Detector(Object):
NameError: name 'Object' is not defined

python= 3.7.13
CUDA = 11.7
我这个出错原因是什么

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.