You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the error is: AttributeError: module 'numpy' has no attribute 'bool'.
I believe it works by changing np.bool to bool
In class SampleImageCallback(Callback) in the init method the code fails with: AttributeError: can't set attribute 'model'
I believe it works by changing self.model = model to self.set_model(model)
Also this line in the dice_coefficient function fails due to type differences: y_true_f = K.flatten(y_true)
I believe if works by replacing it by y_true_f = tf.cast(y_true_f, tf.float32)
The notebook I am using is:
7. Version log
v2.1.3:
Changed default voxel size for Bioimage Model Zoo format export
v2.1.2:
Prediction results should now correctly be saved as volumes
Updated deprecated code for saving BigTIFF volumes
v2.1.1:
Replaced all absolute pathing with relative pathing
v2.1:
Updated notebook to use with TensorFlow 2.11
The full requirements file is exported to replicate the environment
Bug in the preprocessing to be compatible with the BioImage Model Zoo is solved.
Installs fpdf2, curates the format of the pdf and fixes bugs in keras versioning writting.
The text was updated successfully, but these errors were encountered:
jazberna1
changed the title
erroes while running U-Net_3D_ZeroCostDL4Mic.ipynb version 7
error while running U-Net_3D_ZeroCostDL4Mic.ipynb version 7
Sep 6, 2024
Hi,
I just run the
U-Net_3D_ZeroCostDL4Mic.ipynb
notebook:In
section 3.1. Choosing parameters
this line fails:tgt_sample = tifffile.imread(training_target_sample).astype(np.bool)
the error is:
AttributeError: module 'numpy' has no attribute 'bool'.
I believe it works by changing
np.bool
tobool
In
class SampleImageCallback(Callback)
in theinit
method the code fails with:AttributeError: can't set attribute 'model'
I believe it works by changing
self.model = model
toself.set_model(model)
Also this line in the
dice_coefficient
function fails due to type differences:y_true_f = K.flatten(y_true)
I believe if works by replacing it by
y_true_f = tf.cast(y_true_f, tf.float32)
The notebook I am using is:
The text was updated successfully, but these errors were encountered: