Skip to content
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

"caffe_unet was not found" #71

Open
wlynn53545354 opened this issue Jun 16, 2020 · 2 comments
Open

"caffe_unet was not found" #71

wlynn53545354 opened this issue Jun 16, 2020 · 2 comments

Comments

@wlynn53545354
Copy link

Hi there,

I hope you are well! I am trying to run the U-Net plugin (not on a remote server). I followed the video instructions here (https://lmb.informatik.uni-freiburg.de/resources/opensource/unet/#troubleshooting) to open the plugin, and to set the directory for the caffemodel. When I try to run it, it gives me an error message saying "caffe_unet was not found." The Log contains an error message "java.io.IOException: Cannot run program "caffe_unet":error=2, No such file or directory." Please see screenshots for more info! Thanks in advance for your assistance!

Best,
Wei

image

Screen Shot 2020-06-16 at 6 59 30 PM

@ThorstenFalk
Copy link
Collaborator

Hi Wei,

There may be different reasons. Basically the caffe_unet binary is the backend that is used by the plugin. The plugin assumes caffe_unet is installed and its path is added to the PATH environment variable. If it is not, the plugin asks for the path caffe_unet is installed to.

  1. Ensure caffe_unet is installed and can be executed from a shell environment.
  • Open a shell and type caffe_unet
    • Usage message (may look like an error message on the first glance) appears, then you are fine
    • No such file or directory... your PATH environment variable must be setup to point to the caffe_unet installation path (the folder containing the caffe_unet binary). If you set the PATH in .bashrc, ensure that .profile sources .bashrc.
    • Symbol xxxyyy not found in libcaffe.so.0: you have a system-wide caffe installation from your OS, ideally you simply remove it, if this is no option you need to write a small setup script that sets the LD_LIBRARY_PATH environment variable to give the libcaffe.so.0 from caffe_unet precedence over the system libcaffe.so and source this setup script before starting caffe_unet/Fiji.
  1. Start Fiji in the shell environment you could successfully run caffe_unet from

If starting Fiji via double-click in your WindowManager you must find out how to persistently set environment variables for your WindowManager. There is no single solution that works for all.

@kailiplus
Copy link

Hello, I also have the same caffe-unet not found problem, I am running the imagej plugin on the windows system, see you said that this plugin needs a front-end and a back-end server to run, does the back-end server need to connect through the use remote host by default, or can it be deployed locally, because I am a foreign school personnel, I don't know how to apply for an account and use the remote connection, if I want to deploy locally, how to proceed, Expect to hear from you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants