Comments (1)
Hi @shoyip ,
Without the data I can not really tell 100%, but I imagine that what is happening is that one of your masks have all the same values in it. This is making the normalizeMinMax
function to return NaN values as np.amax(x) - np.amin(x)
of an image with the all the values being the same is zero, then the division between zero returns Nan.
# Simple normalization to min/max for the Mask
def normalizeMinMax(x, dtype=np.float32):
x = x.astype(dtype,copy=False)
x = (x - np.amin(x)) / (np.amax(x) - np.amin(x))
return x
Therefore, to solve it, in 021c2c0 I have added a really small value to avoid divisions between zero and with this NaN values.
# Simple normalization to min/max for the Mask
def normalizeMinMax(x, dtype=np.float32):
x = x.astype(dtype,copy=False)
x = (x - np.amin(x)) / (np.amax(x) - np.amin(x) + 1e-10)
return x
Thank you very much for your issue and helping us to solve this problem.
Please try the new notebook and if the problem persist, fell free to comment it again in the issue.
Ivรกn
from zerocostdl4mic.
Related Issues (20)
- Adjusting dependencies to JupySQL HOT 2
- CARE_2D training termination HOT 2
- StarDist_2D -- on official sample data prediction fails with "TypeError" inside "big.py" HOT 3
- StarDist 2D- Encountering an error while trying to export the model to Bioimage model zoo format(Section 5.3.) HOT 5
- StarDist 2D- Encountering error while exporting the model to BioImage Model Zoo format HOT 1
- 2D Stardist keeps crashing when Generating prediction(s) from unseen dataset HOT 1
- Issue with training 3D U-Net using ZeroCostDL4Mic: validation set HOT 2
- Dependencies txt files for local GPU use HOT 2
- Please mark YoloV2 as nonfunctional HOT 1
- Unable to use the TF_SavedModel in Stardist 2D plugin in Fiji HOT 2
- [Feature] Full notebook CI testing HOT 2
- ModuleNotFoundError: No module named 'splinegenerator' HOT 3
- MaskRCNN - Fiji macro HOT 1
- Retain the image size of output for pix2pix model HOT 1
- installation fails in Stardist 3D HOT 2
- 3D unet: Problem with Section 5.4, cannot download model as bioImage HOT 8
- UNET3D prediction problem HOT 8
- Error: pix2pix Section 5.2 Run Quality Control HOT 1
- Fail in installing StarDist_3D_ZeroCostDL4Mic on GoogleColab HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zerocostdl4mic.