Code Monkey home page Code Monkey logo

Comments (6)

camjac251 avatar camjac251 commented on August 29, 2024

When testing I had set minImages = 12000#min(len(images_A),len(images_B))*20 in my train.py file. However when trying to run training again, this is the output/error I get. Is 12000 not feasible for the memory usage that it would take up? I noticed that in my training with only 2000, when looking at the preview I don't see images near the end of the data set.

python train.py
running
loading C:/df/project1/data/A: 100%| 1635/1635 [00:06<00:00, 264.47it/s]
loading C:/df/project1/data/B: 100%| 11819/11819 [00:55<00:00, 212.27it/s]
Images A (1508, 256, 256, 4)
Images B (10332, 256, 256, 4)
Traceback (most recent call last):
  File "train.py", line 32, in <module>
    images_B = images_B/255.0
MemoryError

from df.

ytn2001 avatar ytn2001 commented on August 29, 2024

minImages = max(len(images_A),len(images_B))

from df.

camjac251 avatar camjac251 commented on August 29, 2024

That gives back the same MemoryError.

from df.

feepdakenoob avatar feepdakenoob commented on August 29, 2024

You probably don't have enough memory to load ~12k images.

In my local I changed that to max(len(images_A),len(images_B)) just as ytn2001 did

And then I added a sanity check that if minImages is greater than 6000 log a warning and set it to 6000

from df.

camjac251 avatar camjac251 commented on August 29, 2024

You use 6000 now? over 4000? Do you know if it's the VRAM or RAM that's the limitation. I'm guessing if you are using 6000 images, then you'd have 12GB of vram.

from df.

dfaker avatar dfaker commented on August 29, 2024

This is a limitation around keeping all of the images in memory (RAM).

from df.

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.