Comments (7)
If you are trying to use GPU, change device
in create_mobilenetv3_ssd_lite_predictor to torch.device('cuda:0')
, it works for me.
from mobilenetv3-ssd.
Do you solve this problem?
from mobilenetv3-ssd.
我也是同样的问题?
from mobilenetv3-ssd.
请问一下,执行run_ssd_example.py脚本报这个错该如何解决? Traceback (most recent call last):
File "run_ssd_example.py", line 57, in
boxes, labels, probs = predictor.predict(image, 10, 0.4)
File "D:\Projects\DeepLearning\MobileNetV3-SSD-master\vision\ssd\predictor.py", line 37, in predict
scores, boxes = self.net.forward(images)
File "D:\Projects\DeepLearning\MobileNetV3-SSD-master\vision\ssd\ssd.py", line 100, in forward
locations, self.priors, self.config.center_variance, self.config.size_variance
File "D:\Projects\DeepLearning\MobileNetV3-SSD-master\vision\utils\box_utils.py", line 104, in convert_locations_to_boxes
locations[..., :2] * center_variance * priors[..., 2:] + priors[..., :2],
RuntimeError: expected backend CPU and dtype Float but got backend CUDA and dtype Float
模型加载到cuda就行了
from mobilenetv3-ssd.
@siemonchan thanks
from mobilenetv3-ssd.
请问一下,执行run_ssd_example.py脚本报这个错该如何解决? Traceback (most recent call last):
File "run_ssd_example.py", line 57, in
boxes, labels, probs = predictor.predict(image, 10, 0.4)
File "D:\Projects\DeepLearning\MobileNetV3-SSD-master\vision\ssd\predictor.py", line 37, in predict
scores, boxes = self.net.forward(images)
File "D:\Projects\DeepLearning\MobileNetV3-SSD-master\vision\ssd\ssd.py", line 100, in forward
locations, self.priors, self.config.center_variance, self.config.size_variance
File "D:\Projects\DeepLearning\MobileNetV3-SSD-master\vision\utils\box_utils.py", line 104, in convert_locations_to_boxes
locations[..., :2] * center_variance * priors[..., 2:] + priors[..., :2],
RuntimeError: expected backend CPU and dtype Float but got backend CUDA and dtype Float模型加载到cuda就行了
修改vision/ssd/mobilenet_v3_ssd_lite.py文件第90行成def create_mobilenetv3_ssd_lite_predictor(net, candidate_size=200, nms_method=None, sigma=0.5, device=torch.device('cuda:0'))就可以了。
from mobilenetv3-ssd.
It is recommended that git clone this version
https://github.com/shaoshengsong/MobileNetV3-SSD-Compact-Version
from mobilenetv3-ssd.
Related Issues (20)
- Error Message
- can not recognize the label which is the capital letters. HOT 1
- pretrained model links HOT 1
- 在VOC数据集上训练遇见报错 HOT 6
- 在自己的数据集上训练出错
- 请问导出onnx模型,可以使用opencv-dnn模块加载吗
- Loss does not go down HOT 1
- Mobilenetv3_py is outdated
- V3是否有在imagenet预训练过?没有预训练的效果很差 HOT 1
- MobilenetV3SSD vs YOLOV3
- seek help! TypeError: expected str, bytes or os.PathLike object, not NoneType HOT 2
- code style
- **预加载之前训练的模型**
- 请问我可以将SSD300改成SSD640吗?就是直接将utils.py里的缩放代码那里改变一下
- 为什么使用mbv3_small的预训练会出现乱码
- 利用COCO训练出现问题 HOT 1
- Please share weights outside mainland China HOT 2
- where to download mb3-ssd-lite-Epoch-99-Loss-2.5194434596402613.pth ??? HOT 1
- 请问视频实时识别FPS帧率是多少?
- 有windows版本吗?
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 mobilenetv3-ssd.