Giter Club home page Giter Club logo

Comments (5)

pbaylies avatar pbaylies commented on July 21, 2024

Hi @JanBoskamp -- you'd want to use a StyleGAN model that's been trained on portraits, take a look at the notebook in this repo, by @ak9250

For the encoder parameters, you'll need to specify the model_url and the model_res (512 in this case) as well. Here's an example of what you can expect.

from stylegan-encoder.

JanBoskamp avatar JanBoskamp commented on July 21, 2024

Hi @pbaylies , thanks for your answer, but let me clarify what I mean. With the Stylegan model I have trained, I can create portrait art (similar to @ak9250) and that looks like real art. Very cool. But when I try to find a latent representation in this art domain for an FFHQ image, or an image of myself, the generated image doesn't look like art. Although I am only using the art-stylegan model and not the well-known FFHQ stylegan model to find the representations.

I have attached two example art-stylegan results, and two found latent representations and their images. Any idea how I can force the encoding process to stay more in the art domain? In other words, how can I generate art-stylegan images, with similar facial features as the images of faces I use as input. The example of Elon Musk is the goal I try to achieve with my own model.

Thanks again!

image
image
image

from stylegan-encoder.

pbaylies avatar pbaylies commented on July 21, 2024

Oh hey, nice model, I'd love to try that out! What you should try is raising the L1 penalty (the --use_l1_penalty flag), that will pull it more towards the center of the distribution, i.e., the art domain. Try raising it to 2 or 4, probably 20 would be too high, but somewhere in there.

from stylegan-encoder.

portnoyv avatar portnoyv commented on July 21, 2024

Looks great, Can you share the pre trained wiki-art network? Also, did you train resnet/effnet on wikiart data?

from stylegan-encoder.

portnoyv avatar portnoyv commented on July 21, 2024

@JanBoskamp did you succeed?

from stylegan-encoder.

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.