samson-wang/dcgan.caffe

samson-wang/dcgan.caffe


common.cpp:66] cannot use gpu in cpu-only caffe: check mode.


cp Makefile.config.example Makefile.config

in file Makefile.config      uncomment CPU_ONLY := 1



in file CMakeLists.txt:    caffe_option(CPU_ONLY  "Build Caffe without CUDA support" ON) #OFF->ON



in train.py : #caffe.set_device(gpu_id)

caffe.set_mode_gpu()->caffe.set_mode_cpu()

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用\[1\]:这是一条非常珍贵的命令,找了好久才找到的:(有时候运行该命令一次便可以安装成功,有时候要运行好几次,这可能和网络有关。) pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox 📍三、 安装pycocotools 。 引用\[2\]: 最近做的项目需要安装cython_bbox包,但是当我天真的输入pip install cython_bbox准备满心欢喜的等待安装成功却发现...,它报错了,这是一个从未见过的、非常长的报错,它长这个样子: 。 引用\[3\]:pip install cython_bbox报错如下 Collecting cython_bbox Using cached cython_bbox-0.1.3.tar.gz (41 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> \[6 lines of output\] Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-wcb8evni/cython-bbox_4ae61c9bb59a4b7fa79b746b9fb9560e/setup.py", line 10, in <module> from Cython.Build import cythonize ModuleNotFoundError: No module named 'Cython' \[end of output\] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. 现有的解决方法 。 问题:ubuntu安装cython-bbox 回答: 在Ubuntu上安装cython-bbox时,可能会遇到一些问题。根据引用\[1\]中提供的命令,你可以尝试运行以下命令来安装cython-bbox:pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox。然而,根据引用\[2\]和引用\[3\]的描述,你可能会遇到一个名为"Cython"的模块缺失的错误。这意味着你需要先安装Cython模块。你可以使用以下命令来安装Cython模块:pip install Cython。安装完成后,再次尝试安装cython-bbox包,应该就可以成功了。希望这能帮到你。 #### 引用[.reference_title] - *1* *2* [cython_bbox库就该这么安装](https://blog.csdn.net/qq_51831335/article/details/126457486)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [ubuntu中pip install cython_bbox报错](https://blog.csdn.net/weixin_41868104/article/details/123891737)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值