Closed le-lshr1214 closed 7 years ago
Please check these related issues: https://github.com/lmb-freiburg/flownet2/issues?utf8=%E2%9C%93&q=augmentation_param
Your problem might come from not source
-ing our shell script, or from conflicting Caffe installations on your machine.
@nikolausmayer ,My caffe path is wrong. the error is solved,but still have other error. thanks!
How do you solve this problem? I have the same problem. @le-lshr1214
can't find my caffe_path. I have installed Caffe using ubuntu apt command! Please help me with this.
@Rehan-Rehman-Punjwani
I have installed Caffe using ubuntu apt command
The normal Caffe will not work. You need to compile the Caffe code in this repository (and that is then also your caffe_path
).
@nikolausmayer I am compiling it your Caffe on google colab and still getting the augmentation error!
@Rehan-Rehman-Punjwani The error Message type "caffe.LayerParameter" has no field named "augmentation_param"
indicates that when you execute the network, it loads something that is not coming from our Caffe; probably something with Protobuf.
This typically happens when there are multiple Caffe installations on a machine without a clean separation, but it may happen in other cases that I have not encountered myself.
Why your Caffe is different than the official Caffe? If every Caffe application comes with a tailored Caffe then ...
@rozos I understand and agree with the criticism. Multiple reasons.
Because it was 2016 and the spirit of making your own research code runnable by others with no effort was not yet strong in our group. Because we needed custom layers and Caffe being a C++ framework wasn't really as conducive to shipping your own layer code as, say, Python. Because while you are working on a paper, keeping up with upstream commits and API changes is the least of your concerns, as is post-release support (FlowNet2 was a research project, not a consumer product—we didn't get points for UX).
It's not really our fault that Caffe and its dependencies don't play nice with having multiple installations in the same environment, but we are aware of Caffe's problems, and they are one reason for my Docker image: https://github.com/lmb-freiburg/flownet2-docker
There are re-implementations of FlowNet2 in newer frameworks that do not have this issue, e.g. https://github.com/sampepose/flownet2-tf
Thanks for the reply. After all, Caffe is not an active project, so transition to TF was a good choice.
On 28/03/2020 13:39, Nikolaus Mayer wrote:
@rozos https://github.com/rozos I understand and agree with the criticism. Multiple reasons.
Because it was 2016 and the spirit of making your own research code runnable by others with no effort was not yet strong in our group. Because we needed custom layers and Caffe being a C++ framework wasn't really as conducive to shipping your own layer code as, say, Python. Because while you are working on a paper, keeping up with upstream commits and API changes is the least of your concerns, as is post-release support (FlowNet2 was a research project, not a consumer product—we didn't get points for UX).
It's not really our fault that Caffe and its dependencies don't play nice with having multiple installations in the same environment, but we are aware of Caffe's problems, and they are one reason for my Docker image: https://github.com/lmb-freiburg/flownet2-docker
There are re-implementations of FlowNet2 in newer frameworks that do not have this issue, e.g. https://github.com/sampepose/flownet2-tf
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lmb-freiburg/flownet2/issues/73#issuecomment-605435039, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7ZATUNFIYZ64RNMNYQIVLRJXOYHANCNFSM4D62Y3FA.
I like to think so, too :slightly_smiling_face:
python ./scripts/run-flownet.py ./models/FlowNet2-c/FlowNet2-c_weights.caffemodel ./models/FlowNet2-c/FlowNet2-c_deploy.prototxt.template ./data/ChairsSDHom/data/test/t0/00000.png ./data/ChairsSDHom/data/test/t0/00001.png z.flo WARNING: Logging before InitGoogleLogging() is written to STDERR W1012 16:49:16.114919 11905 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface W1012 16:49:16.114943 11905 _caffe.cpp:140] Use this instead (with the named "weights" parameter): W1012 16:49:16.114959 11905 _caffe.cpp:142] Net('/tmp/tmp7eQgwh', 1, weights='./models/FlowNet2-c/FlowNet2-c_weights.caffemodel') [libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 40:22: Message type "caffe.LayerParameter" has no field named "augmentation_param". F1012 16:49:16.116185 11905 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /tmp/tmp7eQgwh