Comments (9)
训练命令加了“--device 0”嘛
from yoloair.
训练命令加了“--device 0”嘛
加了,一样报这个错
from yoloair.
训练命令加了“--device 0”嘛
你的能跑起来吗?
from yoloair.
Who can solve this problem?
from yoloair.
You can chat with me privately to see what your problem is, Wechat: 1111554
from yoloair.
You can try
!pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
from yoloair.
It has been resolved. You can replace the torch and cuda versions.
!pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f
from yoloair.
It has been resolved. You can replace the torch and cuda versions. !pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f
你下发命令是什么?
from yoloair.
@iscyy
hi,i followed you suggestion,but the error still there.
Traceback (most recent call last):
File "D:\yy\yolov7-main\test.py", line 320, in
test(opt.data,
File "D:\yy\yolov7-main\test.py", line 88, in test
model(torch.zeros(1, 3, imgsz, imgsz).to(device).type_as(next(model.parameters()))) # run once
File "D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "D:\yy\yolov7-main\utils\torch_utils.py", line 372, in forward
out = self.model(x)
File "D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
RuntimeError: The following operation failed in the TorchScript interpreter.
Traceback of TorchScript (most recent call last):
D:\yy\yolov7-main\models\common.py(1688): forward
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\module.py(1039): _slow_forward
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\module.py(1051): _call_impl
D:\yy\yolov7-main\models\common.py(1828): forward
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\module.py(1039): _slow_forward
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\module.py(1051): _call_impl
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\container.py(139): forward
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\module.py(1039): _slow_forward
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\module.py(1051): _call_impl
D:\yy\yolov7-main\models\common.py(1867): forward
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\module.py(1039): _slow_forward
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\module.py(1051): _call_impl
D:\yy\yolov7-main\models\common.py(516): forward
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\module.py(1039): _slow_forward
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\module.py(1051): _call_impl
D:\yy\yolov7-main\models\yolo.py(625): forward_once
D:\yy\yolov7-main\models\yolo.py(599): forward
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\module.py(1039): _slow_forward
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\nn\modules\module.py(1051): _call_impl
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\jit_trace.py(952): trace_module
D:\Anaconda\envs\yolo-hornet\lib\site-packages\torch\jit_trace.py(735): trace
D:\yy\yolov7-main\utils\torch_utils.py(362): init
D:\yy\yolov7-main\test.py(63): test
D:\yy\yolov7-main\test.py(320):
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
from yoloair.
Related Issues (20)
- PPYOLO
- yolov7-swin-transformer
- python train.py --data slide.yaml --cfg configs/transformer/yolov5s_swinv2_head.yaml
- When training YOLOX, val / box _ loss, val / obj _ loss and val / cls _ loss are always 0, why is this ? How to solve ? HOT 1
- 热力图 HOT 1
- I have a question in yolov5_p2.yaml
- How to output model size information?
- 你好,我在yolov5 7.0版本添加了yolox的代码,现在的情况是cls loss不断上涨,导致map一直为0没有结果,请问这个库可以跟随官方更新至最新的7.0版本吗 HOT 1
- RuntimeError: There were no tensor arguments to this function
- When will the code for yolov8 be added?
- some attention modules do not exist
- UnicodeDecodeError: 'gbk' codec can't decode byte 0xb6 in position 1904: illegal multibyte sequence YOLO air HOT 2
- how to export from 'pt' format to 'onnx' format and use Tensor to accelerate detection
- C3STR issue?
- NameError: name 'DetectX' is not defined
- 可以实现yolov8中的c2f+Swim Transformer吗
- ModuleNotFoundError: No module named 'models.Core2024.EMO' HOT 5
- models.Core2024.EMO HOT 1
- No module named 'models.Core2024.EMO' HOT 2
- 这个项目里缺少最先进的YOLOv8和YOLOv9呀,请问什么时候更新呢
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yoloair.