Open Histo23 opened 4 years ago
Hi @Histo23,
Thank you for reporting.
I will try to reproduce the first error. Which keras version are you using?
The second error seems to come from the new config-parameter single_net_per_channel
which was introduced in v0.2.1. This new option is turned on by default and trains an independent U-Net for each channel of a multi-channel image to avoid channel-bleed through artifacts.
You could hack
the config of old N2V training runs, by adding "single_net_per_channel": False
.
Hi, after having used the n2v notebook for 3D denoising with my own images for quite some time it has stopped working recently. I went back and tried to run the example notebooks for training for 3D and 2D-RGB with the provided example data and get the same error when running the actual training. I run csbdeep 0.5.2 and n2v 0.2.1 (if I try to use csbdeep 0.6.0 I get "n2v 0.2.1 has requirement csbdeep<0.6.0,>=0.4.0, but you'll have csbdeep 0.6.0 which is incompatible.")
Here is the error that shows up after executing "history = model.train(X, X_val)"
WARNING:tensorflow: The TensorFlow contrib module will not be included in TensorFlow 2.0. For more information, please see:
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/csbdeep/utils/tf.py:245: The name tf.summary.image is deprecated. Please use tf.compat.v1.summary.image instead.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/csbdeep/utils/tf.py:273: The name tf.summary.merge is deprecated. Please use tf.compat.v1.summary.merge instead.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/csbdeep/utils/tf.py:280: The name tf.summary.FileWriter is deprecated. Please use tf.compat.v1.summary.FileWriter instead.
Epoch 1/25 39/39 [==============================] - 18s 464ms/step - loss: 0.7861 - n2v_mse: 0.7861 - n2v_abs: 0.7184 - val_loss: 0.7623 - val_n2v_mse: 0.7605 - val_n2v_abs: 0.7256 WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/n2v/models/n2v_standard.py:316: The name tf.Summary is deprecated. Please use tf.compat.v1.Summary instead.
AttributeError Traceback (most recent call last)