Giter Site home page Giter Site logo

Batch Size Increase about anoddpm HOT 2 CLOSED

WilliamJudge94 avatar WilliamJudge94 commented on May 29, 2024
Batch Size Increase

from anoddpm.

Comments (2)

Julian-Wyatt avatar Julian-Wyatt commented on May 29, 2024

I may struggle to debug this myself as I no longer have access to a GPU to train this on. But I'll have a short look and get back to you - there's a chance I just wrote a section to just not work with a batch size larger than 1 as I never needed to increase it. (Which is an awful oversight on my part)

from anoddpm.

Julian-Wyatt avatar Julian-Wyatt commented on May 29, 2024
simplex_tensor = torch.from_numpy(
            Simplex_instance.rand_3d_fixed_T_octaves(
                x.shape[-2:], t.detach().cpu().numpy()[0:1], octave,
                persistence, frequency
            )).to(x.device)
   
simplex_tensor = simplex_tensor.view(1, *simplex_tensor.shape) #(or simplex_tensor.unsqueeze(0))

noise[:, i, ...] = simplex_tensor

Can't promise it'll fully work as I can't train it on my machine but the error's no longer there - try updating the generate_simplex_noise method to the above

noticeably, the time value isn't dependent on anything but the inner method needs a single time instance and not a batch wise instance.
Also the repeat method has been removed

from anoddpm.

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.