Skip to content

Run Caffe models using PyTorch as backend #18

@M-Hajakbari

Description

@M-Hajakbari

i tried do this :
import torch
import caffemodel2pytorch

model = caffemodel2pytorch.Net(
prototxt = 'VGG_ILSVRC_16_layers_deploy.prototxt',
weights = 'VGG_ILSVRC_16_layers.caffemodel',
caffe_proto = 'https://github.com/intel/caffe/blob/master/src/caffe/proto/caffe.proto/')
model.cuda()
model.eval()

it just showed the error :

32         if caffe_pb2 is None:
 33                 local_caffe_proto = os.path.join(codegen_dir, os.path.basename(caffe_proto))

---> 34 with open(local_caffe_proto, 'w') as f:
35 mybytes = urlopen(caffe_proto).read()
36 mystr = mybytes.decode('ascii', 'ignore')

IsADirectoryError: [Errno 21] Is a directory: '/tmp/tmpdrkuoyvy/'

can you help me? thanks

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