Closed neurowookie closed 4 years ago
What is your version of tensorflow (conda list tensorflow
inside the caiman environment)?
It looks like you are using a newer version of tensorflow.
I updated the json files in the dev branch just yesterday. If you don't want to downgrade to tensorflow 1.15 or 1.13, you can copy https://github.com/flatironinstitute/CaImAn/blob/dev/model/cnn_model.json and https://github.com/flatironinstitute/CaImAn/blob/dev/model/cnn_model_online.json to your_caiman_data_directory/model (these updated files work not only with tensorflow 2, but also already with 1.13+)
One of the things I tested yesterday before the release was the version of tensorflow you get with a new conda environment; I haven't yet seen a way to end up with anything newer than 1.15 with that initial environment creation.
Using the conda install I ended up with 2.1 on March 5, but maybe there was just a short time window, and it's back to 1.15
Ok so for some reason I ended up with 2.1 even though I did install via a new conda env.(If I create another environment it does it again) Copying the cnn_model from dev branch did not help. Downgrading to 1.15 did. Same issue with Bokeh sliders where I had version 2.0 downgrading to 1.3.4 fixed this. Now I am having some sort of issue when restarting the server resulting in a value error in the terminal but I am unsure whether this is related and it doesn't replicate as easily. Should I post this here or open another issue?
Could you pastebin me the output of these, from your conda environment?:
conda env list
conda list
Thanks
conda env list https://pastebin.com/wLazGFBz (caiman2 is me checking whether it installs the newer version of tensorflow again) conda list https://pastebin.com/5wgJVX6U mind I have already downgraded Tensorflow and Bokeh
Can you pastebin your ~/.condarc ?
It is empty?
I will need to do some experiments to see if I can reproduce the results you're getting - you're ending up with packages mostly from conda-forge, which is surprising to me and not what I'm seeing locally;.
@neurowookie you probably didn't download the raw cnn_model.json. You would do something like
wget https://raw.githubusercontent.com/flatironinstitute/CaImAn/dev/model/cnn_model.json
or open the mentioned webpage in a browser and do right-click save-page-as. I double-checked that this file works indeed with tensorflow 2.1.
@pgunn the dev branch also includes the fix for the bokeh slider issue. Some code has been deprecated and now that bokeh2 finally broke it, I made the required changes. Once the bokeh2-compatible holoviews 1.13 is released, we could make another release ourselves that supports the major tensorflow and bokeh updates.
After deleting ~/.condarc I likewise nevertheless still end up with mostly conda-forge packages.
If it matters, conda config --describe channel_priority
returns 'flexible'
@j-friedrich yes you are correct I did it wrong, with the raw model it works with 2.1 but you are also correct that bokeh2 is broken for now with the model and an old Bokeh I manage to get it to work. However restarting the cluster halfway through the script seems to cause some sort of error that shows up in the terminal after which widgets no longer show. I have a silly amount of ram so its not that important but maybe you have an idea. Here is the terminal output pastebin.com/9q5VK7Fd Thanks for the help.
I encountered the error message in the terminal few times, but not consistently enough to know why it happens. Most of the time it doesn't seem to have any effect. Once or twice it resulted in no plots being displayed and I had to close and reopen the notebook.
This is probably addressed with the latest release so I'm closing it.
For better support, please use the template below to submit your issue. When your issue gets resolved please remember to close it.
Sometimes errors while running CNMF occur during parallel processing which prevents the log to provide a meaningful error message. Please reproduce your error with setting
dview=None
.If you need to upgrade CaImAn follow the instructions given in the documentation.
Tell us a bit about your setup:
pip install .
/pip install -e .
/conda): conda create -n caimanconda activate caiman conda install caiman -c conda-forge *You can get the CaImAn version by creating a
params
object and then typingparams.data['caiman_version']
. If the field doesn't exist, type N/A and consider upgrading)Describe the issue that you are experiencing I have a perfectly functioning older version of Caiman on my Windows PC but on our new linux server I can't seem to get it working using the conda forge install. Specifically gets stuck at the CNN component evaluation. I tried with dview as None as well but happens either way(I didn't think this was the issue). It appears to be something to do with keras but I am unsure. Thank you for your input.
Copy error log below
cnm2.estimates.evaluate_components(images, cnm2.params, dview=None)
(also happens with dview=dview) USING MODEL:/home/voges/caiman_data/model/cnn_model.jsonAttributeError Traceback (most recent call last)