当前位置:网站首页>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
边栏推荐
- 栅格地图(occupancy grid map)构建
- Selection of Hongmeng page menu
- [pytest] modify the logo and parameterization in the allure Report
- Research on 3D model retrieval method based on two channel attention residual network - Zhou Jie - paper notes
- Five causes of PCB board deformation and six solutions 2021-10-08
- Notes: [open class] neural network and deep learning -- tensorflow2.0 actual combat [Chinese course]
- Unity3D邪门实现之GUI下拉菜单Dropdown设计无重复项
- “空间转换”显著提升陡崖点云的地面点提取质量
- Path planner based on time potential function in dynamic environment
- 【Qt】快捷键
猜你喜欢
“空间转换”显著提升陡崖点云的地面点提取质量
Debian introduction
Keil and Proteus joint commissioning
Chuantu microelectronics ca-if1051 can-fd transceiver
npm install 报错 : gyp ERR! configure error
一“石”二“鸟”,PCA有效改善机载LiDAR林下地面点部分缺失的困局
STL tutorial 4- input / output stream and object serialization
无“米”,也能煮“饭”利用“点云智绘”反演机载LiDAR林下缺失地面点攻略
What if there is no point in data visualization?
Without "rice", you can cook "rice". Strategy for retrieving missing ground points under airborne lidar forest using "point cloud intelligent mapping"
随机推荐
Chuantu microelectronics breaks through the high-end isolator analog chip market with ca-is3062w
Advanced mathematics foundation_ Parity of functions
栅格地图(occupancy grid map)构建
RTKLIB-b33版本中GALILEO广播星历存储问题
Without "rice", you can cook "rice". Strategy for retrieving missing ground points under airborne lidar forest using "point cloud intelligent mapping"
指南针可以开股票账户吗?安全吗?
Leetcode daily question - 515 Find the maximum value in each tree row
MySQL facet 01
Sichuan earth microelectronics ca-is1200 isolated operational amplifier for current detection
(tool class) quickly add time to code in source insight
el-input实现尾部加字
【蒸馏】PointDistiller: Structured Knowledge DistillationTowards Efficient and Compact 3D Detection
How to use printf of 51 single chip microcomputer
test
Modular programming of wireless transmission module nRF905 controlled by single chip microcomputer
Misunderstanding of switching triode
Sichuan Tuwei ca-is3105w fully integrated DC-DC converter
Let's talk about MCU crash caused by hardware problems
SQL solve select basic statement
This year, I graduated