Skip to content

TypeError: expected str, bytes or os.PathLike object, not NoneType #12

@NazarovAV

Description

@NazarovAV

Hi! I'm trying to run your example "Imitate pycaffe interface to help in porting", but an error pops up

Traceback (most recent call last):
File "py.py", line 9, in
net = caffe.Net('tracker.prototxt', caffe.TEST, weights = 'tracker.caffemodel')
File "/media/veracrypt1/work/examples/trackers/caffemodel2pytorch-master/caffemodel2pytorch.py", line 71, in init
self.net_param = initialize(caffe_proto).NetParameter()
File "/media/veracrypt1/work/examples/trackers/caffemodel2pytorch-master/caffemodel2pytorch.py", line 33, in initialize
local_caffe_proto = os.path.join(codegen_dir, os.path.basename(caffe_proto))
File "/usr/local/lib/python3.7/posixpath.py", line 146, in basename
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

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