Giter Site home page Giter Site logo

z_list about glow-pytorch HOT 9 OPEN

rosinality avatar rosinality commented on September 17, 2024
z_list

from glow-pytorch.

Comments (9)

rosinality avatar rosinality commented on September 17, 2024 1

For each block half of outputs splitted into z and appended to zs.

from glow-pytorch.

rosinality avatar rosinality commented on September 17, 2024

If you need to reconstruct then you only need a output z lists. Random zs is used for sampling from the model.

from glow-pytorch.

ZhouCX117 avatar ZhouCX117 commented on September 17, 2024

Thanks for your answer!
Why do we need a z list rather than a single z?

from glow-pytorch.

ZhouCX117 avatar ZhouCX117 commented on September 17, 2024

Thanks a lot! I think I have more understanding of the glow model.

from glow-pytorch.

ZhouCX117 avatar ZhouCX117 commented on September 17, 2024

Hi, It is me again!
I can't understand the self.scale = nn.Parameter(torch.zeros(1, out_channel, 1, 1)) and "out = out * torch.exp(self.scale * 3)" in the ZeroConv2d module. Could you please tell me what role this plays? I appreciate your answer!

from glow-pytorch.

ZhouCX117 avatar ZhouCX117 commented on September 17, 2024

`if args.n_bits < 8:
image = torch.floor(image / 2 ** (8 - args.n_bits))

        image = image / n_bins - 0.5`

Hi, a more question. Does this code mean image=image/256-0.5? What is the good of this way?

from glow-pytorch.

ZhouCX117 avatar ZhouCX117 commented on September 17, 2024

loss = -log(n_bins) * n_pixel
Hi~ Why do we need this constant loss? I appreciate your answer! Thanks a lot!

from glow-pytorch.

ZhouCX117 avatar ZhouCX117 commented on September 17, 2024

Hi, do you train the face for image_size 256*256? What is the setup of hyperparameters? I set the batch=2 and keep the other, the results are so bad.

from glow-pytorch.

ZhouCX117 avatar ZhouCX117 commented on September 17, 2024

The parallel train can't work. And if I change the n_block from 4 to 6 as suggested by the paper, the loss becomes Nan.

from glow-pytorch.

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.