GithubHelp home page GithubHelp logo

Comments (2)

issue-label-bot avatar issue-label-bot commented on July 26, 2024 1

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.72. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

from stylegan2-projecting-images.

woctezuma avatar woctezuma commented on July 26, 2024

It is an interesting idea. I have not done it, but I think you would only have to edit:

https://github.com/NVlabs/stylegan2/blob/dae148b9bb6346b00c10f0cfc9e011b3ef0c1986/projector.py#L160-L162

def start(self, target_images):
    [...]

    # Prepare target images.
    self._info('Preparing target images...')
    [...]

    # Initialize optimization state.
    self._info('Initializing optimization state...')
    tflib.set_vars({
                    self._target_images_var: target_images, 
                    self._dlatents_var: np.tile(self._dlatent_avg, [self._minibatch_size, 1, 1])
                    })
    [...]

so that the optimization starts from an array w fed as input by the user instead of always the same w_avg:

np.tile(self._dlatent_avg, [self._minibatch_size, 1, 1])

It is a bit similar to the idea of improving the initialization here: rolux/stylegan2encoder#2

from stylegan2-projecting-images.

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.