-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
paddlecls特征提取模型微调 #3170
Comments
请问您装的是Paddle的GPU版本吗?建议重新uninstall后再装下GPU版的Paddle呢 |
是paddle的GPU版本, 已经解决了, 是版本的问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
paddleclas 2.5.1
paddlepaddle 2.5.2
paddlepaddle-gpu 2.5.2.post112
2.python版本号: Python 3.7.13
文档链接: https://github.com/PaddlePaddle/PaddleClas/blob/release/2.5/docs/zh_CN/training/metric_learning/training.md
在运行命令之后python3.7 tools/train.py
-c ./ppcls/configs/quick_start/MobileNetV1_retrieval.yaml
-o Arch.Backbone.pretrained=True
-o Global.device=gpu 报如下问题:
Traceback (most recent call last):
File "tools/train.py", line 32, in
engine = Engine(config, mode="train")
File "/mnt/project/PaddleClas/ppcls/engine/engine.py", line 99, in init
self.device = paddle.set_device(self.config["Global"]["device"])
File "/usr/local/lib/python3.7/dist-packages/paddle/device/init.py", line 266, in set_device
place = _convert_to_place(device)
File "/usr/local/lib/python3.7/dist-packages/paddle/device/init.py", line 181, in _convert_to_place
"The device should not be 'gpu', "
ValueError: The device should not be 'gpu', since PaddlePaddle is not compiled with CUDA
请问这个bug是因为版本不匹配还是其他问题?
The text was updated successfully, but these errors were encountered: