Coder Social home page Coder Social logo

Comments (3)

plyfager avatar plyfager commented on June 29, 2024

Hi @cdrwolfe, it's a good issue. To quickly implement your work, you can use the sample_from_path function in interpolate_sample.py and pass the projected latents into lantent_a and latent_b. Also, I will support interpolation between saved latents soon.

from mmgeneration.

cdrwolfe avatar cdrwolfe commented on June 29, 2024

Cheers!,

I've implemented a hack using as you described using the two latents a and b. I just have one or two questions.

The latent_n from my point of view is saved for each image to a .pt so i can use later. It seems to be a [3,512] tensor and using the above approach if i interpolate between two latents and save their images. Lookig at line+ 229 of interpolate_sample.py:

results = results.reshape(-1, ch, h, w)

For a 50 interval interpolation...

When i run it using my latents this approach basically flattens the [3, 50, 3, 512] into a [150, 3, 512] or 150 images, where each 50 is a sequence of latent_a to latent_b. Using the standard interpolate_sample.py it seems I don't get this, which is what i want, instead i get basically 3 X the number of images of the same thing, (interpolation between latents a and b).

Why does the latent [3,512] seem to have 3 latent codes which are then used to create 3 differant versions of the same thing? I thought perhaps I should take the 3 sets of images and try and get their mean for a combiend single set of images, but couldn't figure out how :).

Anyrate I look forward to your solution :)

from mmgeneration.

plyfager avatar plyfager commented on June 29, 2024

I have added this function in #167 . You can use stylegan_projector.py to produce projection file. Then just add --proj-latent xxx/project_result.pt at the end of interpolation command line. I'm sorry for adding this function a little late.

from mmgeneration.

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.