简体   繁体   English

如何安装或使 keras_retinanet.utils.gpu 模块工作?

[英]How to install or make working keras_retinanet.utils.gpu module?

I am trying to train M-RCNN using Keras and RetinaNet as in the Keras founder's example.我正在尝试使用 Keras 和 RetinaNet 训练 M-RCNN,就像在 Keras 创始人的示例中一样。 I installed retinanet package but this module isn't found.我安装了retinanet 包,但没有找到这个模块。 May be it is related to that my TF doesn't use GPU?可能与我的TF不使用GPU有关? How to check that?如何检查?

from keras_retinanet.utils.gpu import setup_gpu
    Traceback (most recent call last):

      File "<ipython-input-2-1f3ae263a7c6>", line 1, in <module>
        from keras_retinanet.utils.gpu import setup_gpu

    ModuleNotFoundError: No module named 'keras_retinanet.utils.gpu'

You probably need to install some submodules.您可能需要安装一些子模块。 The beginning of this code may help you https://www.kaggle.com/labintsevai/keras-retinanet-submission这段代码的开头可能对你有帮助https://www.kaggle.com/labintsevai/keras-retinanet-submission

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何安装“util”(不是 utils)模块 - How to install "util" (not utils) module 如何安装模块“keras”? - How to install module 'keras'? Pyhton:如何安装 utils.metrics 模块? - Pyhton: How to install utils.metrics module? AttributeError:模块“keras.utils.generic_utils”没有属性“populate_dict_with_module_objects”(降级 keras 到 2.2.4 不起作用) - AttributeError: module 'keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects' (Downgrade keras to 2.2.4 not working) 如何修复:模块“keras.utils.generic_utils”没有属性“populate_dict_with_module_objects” - How to fix : module 'keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects' 如何使用自定义数据集运行 Keras Retinanet 对象检测代码示例? - How to run Keras Retinanet object detection code example with custom dataset? Keras:ImportError:没有名为data_utils的模块 - Keras: ImportError: No module named data_utils 如何在 GPU 上使用 Keras? - How to use Keras with GPU? 如何在python 2环境conda中安装keras模块? - How to install keras module in python 2 environment conda? 初始化时出现tf.python.keras.utils.multi_gpu_model错误 - tf.python.keras.utils.multi_gpu_model error on initializing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM