Giter Club home page Giter Club logo

Comments (10)

jwyang avatar jwyang commented on August 16, 2024

Hi, @albertyou2

Thanks, regarding to your questions:

How to create training dataset?What 's the format of the datas?
-> the dataset should contain train images and train labels. Mostly, I used matlab to read images and then combine them into a single tensor, whose dimension is Height x Width x Channel x Nsamples. Along with train data, the labels should have dimension 1 x Nsamples. Generally, we need to whiten the data. But it is not always better than doing nothing from my experiments. After that, you can save them to a hdf5 file with matlab.

Now i want train my custom images,I have no idea how to transform them to .h5 file
-> As illustrated above, you need to organize the images to a single tensor, and then combine their cluster labels to create a hdf5 file. Then create your own folder in the datasets folder with name of your dataset, and name the hdf5 file to 'data4torch.h5'. Then you are all set to run the code.

could you please give a step by step training instructions()?I think this will help other people too.
-> Yes, I will elaborate how to train on your own dataset. Thanks for reminding.

from jule.torch.

albertyou2 avatar albertyou2 commented on August 16, 2024

@jwyang Thanks for your reply !
I will have a try .

from jule.torch.

bnascimento avatar bnascimento commented on August 16, 2024

Since this is unsupervised clustering, why do we need the labels? why not just the images? For testing purposes?
How can I setup a dataset with just images and no labels? is that possible? cheers and thank you

from jule.torch.

jwyang avatar jwyang commented on August 16, 2024

Yes, the labels are used for evaluation only. To cluster images without labels, just set the label randomly and comment evalPerf() if you want.

from jule.torch.

bnascimento avatar bnascimento commented on August 16, 2024

Would you be able to share some code how to transform the data from images to NxCxWxH tensor and into hdf5 dataset?

from jule.torch.

jwyang avatar jwyang commented on August 16, 2024

Thanks for the suggestions, I will do that, and push the code to this repository soon.

from jule.torch.

ShansYu avatar ShansYu commented on August 16, 2024

Hi~@jwyang I have the same problem. How to transform the data from images to NxCxWxH tensor and into hdf5 dataset? I can't find the code as you said above.

from jule.torch.

jwyang avatar jwyang commented on August 16, 2024

Hi, @ShansYu, yes, you are right, I have not yet uploaded the code for transformation. My previous code is based on matlab, and missed after I reinstall my system. It should be very simple to load images from folder based on torch. Please refer to this demo code. You can create a tensor to hold all images data, and another tensor to hold labels you have the labels.

from jule.torch.

ShansYu avatar ShansYu commented on August 16, 2024

@jwyang Thanks for your reply ! I will have a try.

from jule.torch.

jwyang avatar jwyang commented on August 16, 2024

@ShansYu sounds good!

from jule.torch.

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.