Code Monkey home page Code Monkey logo

Comments (4)

dave-epstein avatar dave-epstein commented on September 16, 2024

Yes, the shape of covs is actually not N x M x 2 x 2 unless covs_raw is False, sorry about that. If you run the code you'll see it's an N x M x 4 packed tensor of all the blob parameters which is then processed into the final covariance matrix. Apologies for the misleading code segment!

from blobgan.

shijianjian avatar shijianjian commented on September 16, 2024

Hi @dave-epstein,

Thanks for the explanation. I run the following code:

layout, img = model.gen(layout=layout, ret_layout=True)

It turns out that the bug appeared (that NM22 is outputted) when the layout is provided. As a result, a simple reshape from NM22 to NM4 would work, right?

from blobgan.

dave-epstein avatar dave-epstein commented on September 16, 2024

That should not be necessary. I've run that code snippet that you sent without any problem. See this line which takes care of the correct parameter settings automatically: https://github.com/dave-epstein/blobgan/blob/main/src/models/blobgan.py#L183

Do you have an old version of the code or something like that?

from blobgan.

shijianjian avatar shijianjian commented on September 16, 2024

It worked after updating the code to the latest version. Thanks.

from blobgan.

Related Issues (12)

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.