Giter Club home page Giter Club logo

Comments (5)

lucpaul avatar lucpaul commented on September 10, 2024

Hi, this error seems to have to do with the image dimensions or image format. What size are your images? And what type of data is it?
Ideally, your images should be square (so same number of pixels in x and y) and grayscale. Also, if possible, shape your images into dimensions that are divisible by 32, (how about 4000x4000?).
The data we used were 8-bit .tif files. Don't use RGB images. If you can give a little bit more info on the data maybe I can help you more.

I hope this helps.

from zerocostdl4mic.

CadotB avatar CadotB commented on September 10, 2024

Hi, Thanks for your answer. My images where 9246x9246 or 12302x12302, tif, 8 bit, from fluorescence. I crop them to have 4000x4000, and the training went further but didn't finished. Now I have:
image
Here is one of them: https://drive.google.com/open?id=1e43rOatP113aXjYS8EXJcw2HpYAxmIEm
and its trained counterpart: https://drive.google.com/open?id=1YQ7kONFZvW3rGNA4qT1ljORRh9oK0kOJ
Thanks!

from zerocostdl4mic.

lucpaul avatar lucpaul commented on September 10, 2024

I see. This is annoying but I think you have very likely run into one of the limitations of colab that we also encountered and which is described in our preprint. This has to do with the size of the data. Simply put, your images are too big and when you try to load your data into your network colab can't handle it. What you can try is a) reduce the batch size (go down to 1) because that way the data loaded into the network is less at each time point or b) crop your data into smaller patches; this worked for us with 1024x1024 patches, but you can try 2048x2048 or any other size smaller than 4000, but maybe start low and work out the upper limit.

This might be frustrating but is simply a limitation of the free service provided by the platform. I hope this helps you to figure it out.

from zerocostdl4mic.

CadotB avatar CadotB commented on September 10, 2024

Thanks a lot, now it's working with 1024x1024 images. I will mosaic my images to this size to make things easier.

from zerocostdl4mic.

lucpaul avatar lucpaul commented on September 10, 2024

Great. I will close this now then. Feel free to open again if something else on this arises.

from zerocostdl4mic.

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.