Comments (5)
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.
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!
from stylegan-encoder.
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.
Looks great, Can you share the pre trained wiki-art network? Also, did you train resnet/effnet on wikiart data?
from stylegan-encoder.
@JanBoskamp did you succeed?
from stylegan-encoder.
Related Issues (20)
- Error running encode_images.py on Colab HOT 2
- Error while running encode_images.py #41
- google drive exceeded encode_images.py
- Two bugs found HOT 2
- AttributeError: module 'tensorflow' has no attribute 'Dimension' HOT 2
- Face Alignment results in exception error
- Compatibility with pretrained stylegan2 model? HOT 7
- train encoder directly HOT 1
- requirements.txt empty and compatibility issues HOT 1
- assert img.shape == self.shape Assertion Error HOT 6
- How to interpolate a one region of two faces? HOT 1
- Why can't we find the vector Z and have to use W ? HOT 2
- runing StyleGAN_Encoder sehape error HOT 2
- Weird error, how do I fix it???'
- Why requirments.txt is empty HOT 1
- Getting error while run the 'encode_images.py' file
- 'latent_training_data' is no longer available HOT 1
- PreTrained Model HOT 1
- tf compatibility issue
- _pickle.UnpicklingError: invalid load key, '<'. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stylegan-encoder.