Skip to content

Support for GPU not setup by default #16

@paulnord

Description

@paulnord

If Caffe was built for the NVIDIA GPU, these lines will speed things up a LOT. Insert this code just after the "import caffe" line.

# If your GPU supports CUDA and Caffe was built with CUDA support,
# uncomment the following to run Caffe operations on the GPU.
caffe.set_mode_gpu()
caffe.set_device(0) # select GPU device if multiple devices exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions