Giter Club home page Giter Club logo

Comments (4)

pguardiario avatar pguardiario commented on July 21, 2024 1

This looks better but instead of

await layers.forEach(async (layer) => {
     await drawLayer(layer, i);
   });

I suggest:

for(let layer of layers){
  await drawLayer(layer, i);
}

That forEach is a HoF and I think there's some confusion about how those work.

from generative-art-node.

grantreighard avatar grantreighard commented on July 21, 2024

It appears that the application does a lot of work in memory, as evidenced by the output not populating and the metadata file not being written until everything else is done. You would probably need a ton of RAM to reach 10,000 files in one run. I tried for 1,000 and my node crashed at 309, and my computer has 32 GB RAM. If batching them is acceptable to you, this might be the only solution without buying a massively powerful computer or minting via contract. Remember to copy batches somewhere else if you do plan to do it this way, as this application wipes the output directory every run.

from generative-art-node.

pguardiario avatar pguardiario commented on July 21, 2024

The metadata for 10K would be less than 10M so that can't be it. It looks like it's just not waiting for things that are async, It probably needs a major rewrite.

from generative-art-node.

moranil avatar moranil commented on July 21, 2024

that the application does a lot of work in memory, as evidenced by the output not populating and the metadata file not being written until everything else is done. You would probably need a ton of RAM to reach 10,00

Hi, The fix for this issue has been merge in the main branch. Can you please check if this is working now?

from generative-art-node.

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.