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
Hello and thanks for the library, it is very good!
I am training a CNN model and the predicted image I receive is
As you can see, it has many horizontal and vertical lines.
It should look close like
The thing is that because I use linear activation as the last layer the predictions take values preds.max() = 2.38 , preds.min() = -1.7. Something like that.
Note that, after loading the images, I use np.array(img3, np.uint8) . So, when I use the emp.extract_patches, I have uint8 type.
Does it matter if we use uint8 or leave float values for this?
Hello and thanks for the library, it is very good!
I am training a CNN model and the predicted image I receive is
As you can see, it has many horizontal and vertical lines.
It should look close like
The thing is that because I use linear activation as the last layer the predictions take values
preds.max() = 2.38
,preds.min() = -1.7
. Something like that.And maybe this is the problem , I am not sure.
If I use:
I receive the image above as I said.
If I just use:
preds = model.predict(tiles2)
or/and
preds = np.uint8(preds)
I receive a black image.
Note that, after loading the images, I use
np.array(img3, np.uint8)
. So, when I use theemp.extract_patches
, I haveuint8
type.Does it matter if we use
uint8
or leavefloat
values for this?The data I am using is here
The code:
The text was updated successfully, but these errors were encountered: