AssertionError: Not compiled with CUDA
Created by: yuzehui1996
欢迎您反馈PaddleHub使用问题,非常感谢您对PaddleHub的贡献! 在留下您的问题时,辛苦您同步提供如下信息:
- 版本、环境信息 1)PaddleHub和PaddlePaddle版本: PaddleHub1.5.4,PaddlePaddle1.7.1 2)系统环境: Linux(centos-7),python-3.7
报错信息如下: ▽ 1 [2020-05-21 20:35:47,983] [ INFO] - Installing resnext50_32x4d_imagenet module 2 [2020-05-21 20:35:48,001] [ INFO] - Module resnext50_32x4d_imagenet already installed in /home/luban/.paddlehub/modules/resnext50_32x4d_imagenet 3 [2020-05-21 20:35:48,332] [ INFO] - 267 pretrained paramaters loaded by PaddleHub 4 [2020-05-21 20:35:48,518] [ INFO] - Dataset label map = {'1': 0, '2': 1, '3': 2, '4': 3, '5': 4, '6': 5, '7': 6, '8': 7, '9': 8} 5 [2020-05-21 20:35:48,519] [ INFO] - Checkpoint dir: ckpt_20200521203548 6 Traceback (most recent call last): 7 File "img_cls.py", line 147, in 8 finetune(args) 9 File "img_cls.py", line 113, in finetune 10 config=config) 11 File "/home/luban/anaconda3/lib/python3.7/site-packages/paddlehub/finetune/task/classifier_task.py", line 49, in init 12 metrics_choices=metrics_choices) 13 File "/home/luban/anaconda3/lib/python3.7/site-packages/paddlehub/finetune/task/base_task.py", line 242, in init 14 self.place = self.places[0] 15 File "/home/luban/anaconda3/lib/python3.7/site-packages/paddlehub/finetune/task/base_task.py", line 416, in places 16 _places = fluid.framework.cuda_places() 17 File "/home/luban/anaconda3/lib/python3.7/site-packages/paddle/fluid/framework.py", line 314, in cuda_places 18 "Not compiled with CUDA" 19 AssertionError: Not compiled with CUDA