-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: expected str, bytes or os.PathLike object, not NoneType #12
Comments
It seems that either codegen_dir or caffe_proto are None. Could you please put in a |
Yes, caffe_proto was None. |
|
You should also decide if you want to provide pytorch equivalents of these modules:
|
If you do, please don't hesitate to send a PR - the codebase would improve from some porting to Python3 and more modern PyTorch |
These two change worked for me. |
@abhisheksambyal Please send a PR, I'll merge these |
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
The text was updated successfully, but these errors were encountered: