Giter Site home page Giter Site logo

Comments (7)

jpatrickpark avatar jpatrickpark commented on May 27, 2024 1

Hi,

Please use the load_image function in src/data_loading/loading.py to load either png or hdf5 files using appropriate view and horizontal_flip information. Alternatively, you can use read_image_mat in src/utilities/reading_images.py to load the hdf5 heatmaps without view and horizontal_flip information.

It will be loaded as a numpy array, which can be plotted as follows:

import matplotlib.pyplot as plt
from src.utilities.reading_images import read_image_mat

image = read_image_mat(image_path)
plt.imshow(image)
plt.show()

from breast_cancer_classifier.

jpatrickpark avatar jpatrickpark commented on May 27, 2024 1

Could you clarify what you mean by that? Do you mean the image looks corrupted?

from breast_cancer_classifier.

tahavarol avatar tahavarol commented on May 27, 2024

Hello, when I am trying to plot hdf5 file the image look very bad. I have used read_image_mat function. Where do I am doing the mistake. Thanks in advance.

from breast_cancer_classifier.

Emirbz avatar Emirbz commented on May 27, 2024

Hello , can i save the hdf5 heatmaps to png file ?

from breast_cancer_classifier.

wooginawunan avatar wooginawunan commented on May 27, 2024

Sure. You could save the heat maps as png files. The generated heat maps are just numpy arrays with value between 0-1. You could use 'scipy.misc.imsave' to save it as png file but just be careful while loading those png files especially if you still want to take them as input the following models. Values might be transformed to fit the typical png image scale (0-255).

from breast_cancer_classifier.

Tonthatj avatar Tonthatj commented on May 27, 2024

Very low res heatmap, is there anyway to clean it up? already saved as png.

from breast_cancer_classifier.

kjgeras avatar kjgeras commented on May 27, 2024

@Tonthatj The heatmap is supposed to be of lower resolution than the original image. Note that the classifier is applied with a stride much bigger than 1.

from breast_cancer_classifier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.