当前位置:网站首页>AttributeError: ‘Upsample‘ object has no attribute ‘recompute_ scale_ factor‘
AttributeError: ‘Upsample‘ object has no attribute ‘recompute_ scale_ factor‘
2022-06-25 07:44:00 【cv-daily】
Use torch 1.11.0+cu102 CPU function u edition yolov5 Times wrong :
Traceback (most recent call last):
File "yolov5/detect.py", line 293, in <module>
main(opt)
File "yolov5/detect.py", line 288, in main
run(**vars(opt))
File "anaconda3/envs/yolov5/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "yolov5/detect.py", line 152, in run
pred = model(img,
File "anaconda3/envs/yolov5/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "yolov5/models/yolo.py", line 195, in forward
return self.forward_once(x, profile, visualize) # single-scale inference, train
File "yolov5/models/yolo.py", line 226, in forward_once
x = m(x) # run
File "anaconda3/envs/yolov5/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "anaconda3/envs/yolov5/lib/python3.8/site-packages/torch/nn/modules/upsampling.py", line 154, in forward
recompute_scale_factor=self.recompute_scale_factor)
File "anaconda3/envs/yolov5/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1185, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'
Process finished with exit code 1
Reference resources :http://www.manongjc.com/detail/28-llivmebvzwrvnfa.html
Refit pytorch
conda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 cudatoolkit=10.2 -c pytorch
边栏推荐
- 【批处理DOS-CMD命令-汇总和小结】-cmd扩展命令、扩展功能(cmd /e:on、cmd /e:off)
- My debut is finished!
- [distillation] pointdistiller: structured knowledge distillationwards efficient and compact 3D detection
- [Batch dos - cmd Command - Summary and Summary] - External Command - cmd Download Command, wget Command
- [batch dos-cmd command - summary and summary] - external command -cmd download command and packet capture command (WGet)
- Sichuan Tuwei ca-is3105w fully integrated DC-DC converter
- 用太极拳讲分布式理论,真舒服!
- Authentique Photoshop 2022 expérience d'achat partage
- Evolution of Alibaba e-commerce architecture
- Sichuan earth microelectronics ca-is1300 isolated operational amplifier for current detection is on the market
猜你喜欢

My debut is finished!

Cocos learning diary 3 - API acquisition nodes and components

Harmony food menu interface

Distributed quorum NWR of the alchemy furnace of the Supreme Master
![[single chip microcomputer project training] multipoint temperature wireless acquisition system based on nRF905](/img/a7/fc5d2f4640322a5d7222cce83c8898.jpg)
[single chip microcomputer project training] multipoint temperature wireless acquisition system based on nRF905

Without "rice", you can cook "rice". Strategy for retrieving missing ground points under airborne lidar forest using "point cloud intelligent mapping"

Domestic MCU perfectly replaces STM chip model of Italy France

Chuantu microelectronics breaks through the high-end isolator analog chip market with ca-is3062w

函数模板_类模板

How comfortable it is to use Taijiquan to talk about distributed theory!
随机推荐
STL tutorial 4- input / output stream and object serialization
Sichuan earth microelectronics ca-is1200 isolated operational amplifier for current detection
Misunderstanding of switching triode
lebel只想前面有星号,但是不想校验
【批处理DOS-CMD命令-汇总和小结】-应用程序启动和调用、服务和进程操作命令(start、call、)
C Getting Started tutorial
C#获取exe的版本号-文件版本and程序集版本
VectorDraw Developer Framework 10.10
shell小技巧(一百三十四)简单的键盘输入记录器
VectorDraw Web Library 10.10
C# 读取web上的xml
对链表进行插入排序[dummy统一操作+断链核心--被动节点]
无“米”,也能煮“饭”利用“点云智绘”反演机载LiDAR林下缺失地面点攻略
基于地面点稀少的LiDAR点云的茂密森林蓄积量估算
LeetCode 每日一题——515. 在每个树行中找最大值
Can I open a stock account with a compass? Is it safe?
Full range of isolator chips with integrated isolated power supply
搞清信息化是什么,让企业转型升级走上正确的道路
【蒸馏】PointDistiller: Structured Knowledge DistillationTowards Efficient and Compact 3D Detection
【QT】Qt 5 的程序:打印文档