yolov7自动标注
操作与v5自动标注相当,不需要导入.yaml文件
需要yolov7的朋友可到此处下载
https://github.com/WongKinYiu/yolov7.git
或者到该仓库下载,本人已克隆当前运行版本
https://github.com/mohenghui/yolov7
mohenghui / detectauto_v7 Goto Github PK
View Code? Open in Web Editor NEWyolov7自动标注
yolov7自动标注
yolov7自动标注
操作与v5自动标注相当,不需要导入.yaml文件
需要yolov7的朋友可到此处下载
https://github.com/WongKinYiu/yolov7.git
或者到该仓库下载,本人已克隆当前运行版本
https://github.com/mohenghui/yolov7
这个 用yolov8 能直接使用不能
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
我这个出错原因是什么
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.