-
Notifications
You must be signed in to change notification settings - Fork 459
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
Attempt at reconciling caffe-crfrnn with upstream caffe #6
Comments
@mtourne Thanks for this contribution. This is great. Regarding to the problem, I think you'd better look into caffe python interface: (https://github.com/torrvision/crfasrnn/blob/master/caffe-crfrnn/python/caffe/_caffe.cpp), and (https://github.com/torrvision/crfasrnn/blob/master/caffe-crfrnn/python/caffe/segmenter.py). Let us know if you have made any progress in this regards. Best wishes. |
I think it might work, since I'm getting the exact same problem with caffe itself. I believe it's a problem with my mac and not with the code. |
Alright made some good progress, the python demo now breaks on
Seems like it's the crop layer that's not recognized. But I've definitely added it to the merged caffe.proto [1]. I think it has to do with with some deprecated layerparam. |
It works now! I haven't tested the gpu portion of the code, nor the matlab integration (presumably broken). Feel free to take this contribution, as it seem like it would be easier to keep it functioning in the future if it's based on upstream caffe. |
@mtourne Thanks a lot for this contribution. |
mtourne Thanks for the contribution. Could you please share notes (step by step) to merge the mean field layer with caffe master. So, it helps case of caffe future releases. |
@ultrai Basically started with master's Caffe, and then manually added all the code required. Sometimes by diffing the files. The way you'd keep it in sync with upstream Caffe going forward is by fetching upstream Caffe, and rebasing the modification of this specific branch onto it (you can also use merging, but it's less clean that rebase in that case). This is a very common git operation to do, I recommend reading more git-related material about it. |
This is fixed now. |
Mostly trying to compile this on a mac, with CPU_ONLY.
So I thought it would be easier to add the differences on top of the upstream caffe
Here is my fork https://github.com/mtourne/crfasrnn, where caffe is a submodule that points here :
https://github.com/mtourne/caffe/tree/crfasrnn
(this makes it a lot easier to see what diverges if caffe-crfrnn stems off from the actual caffe git).
Everything builds and the tests pass (including meanfield layer one), but import caffe in python will segfault.
Would you have any ideas so I can further this ?
Thank you
The text was updated successfully, but these errors were encountered: