Skip to content

CPU demo running #58

@Jadranko95

Description

@Jadranko95

Hello :)

I tried run demo.py in CPU mode), I modified file:

Loading the network

#cfg.GPU_ID = args.gpu_id
#caffe.set_mode_gpu()
#caffe.set_device(args.gpu_id)
caffe.set_mode_cpu()

and I got the following problem:

root@adrian-H81M-S2V:/home/adrian/magisterka/SSH# sudo python3 demo.py
#################### Configuration ####################
TEST{
ORIG_SIZE: False
SCALES: [500, 800, 1200, 1600]
MAX_SIZE: -1
PYRAMID_BASE_SIZE: [800, 1200]
NMS_THRESH: 0.3
N_DETS_PER_MODULE: 1000
ANCHOR_MIN_SIZE: 0
}
DEBUG: False
PIXEL_MEANS: [[[102.9801 115.9465 122.7717]]]
RNG_SEED: 3
EPS: 1e-14
DATA_DIR: /home/adrian/magisterka/SSH/data
MATLAB: matlab
EXP_DIR: ssh_pyramid
USE_GPU_NMS: True
GPU_ID: 0
ROOT_DIR: /home/adrian/magisterka/SSH
#######################################################
File "/home/adrian/magisterka/SSH/SSH/layers/proposal_layer.py", line 39
print 'feat_stride: {}'.format(self._feat_stride)
^
SyntaxError: invalid syntax
Loading the network...Traceback (most recent call last):
File "demo.py", line 50, in
net = caffe.Net(args.prototxt, args.model, caffe.TEST)
SystemError: <Boost.Python.function object at 0x32b9570> returned NULL without setting an error

What could be wrong?

Best regards,
Adrian

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