Giter VIP home page Giter VIP logo

bioscan-1m's Issues

Reading hdf5 files

Hello,

Thanks a lot for making the dataset available. I'm really looking forward to trying to work with it.

I have just started looking at the data and am having trouble reading the images from cropped_256.hdf5. Perhaps this is just due to my own unfamiliarity with hdf5, but it seems like the images are 1 dimensional and that dimension does not seem necessarily divisible by 256.

I am reading the images in as follows:

import numpy as np

with h5py.File('cropped_256.hdf5','r+') as hdf5:
    img = np.array(hdf5['bioscan_dataset']['3652597.jpg'])
    print(img.shape)
    print(img.shape / 256)

and I get the following output:

(7633,)
29.81640625

I have tried with a few different images and I get similar results. For now I'll use the zip files so this probably isn't a barrier for many, but if I am doing something wrong in the reading of the hdf5 data, maybe a how-to in the readme would be a good idea.

Thanks again for the dataset!

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.