Comments (7)
Your face is not well aligned. You may forget the face alignment option --align_face
This is my results using
python style_transfer.py --content ./data/content/tmp.jpg --align_face
Please refer to the testing options in the README.md
from dualstylegan.
I tried the method you taught just now, but the result is still not satisfactory.Is this due to a problem with the alignment model?
from dualstylegan.
I don't know.
Your input image in the first column is strange.
I think it's the probelm of your input image.
from dualstylegan.
The first column of the image should be the original image, or the aligned image.When I use the alignment operation, the result of my first column will look strange.
from dualstylegan.
I think it is your image format problem, which leads to the wrong face alignment (I don't think it is the problem of my code, it might relate to the image reading, image cropping, face alignment, etc.)
You can try the image below, which I cropped from your image.
from dualstylegan.
The pictures you gave me do show very good results.
So I naturally assumed that the input image would need to be a square image.Or it can only be 256 x 256.
And after a couple of tries, I realized that the problem really was the image format.
But what kind of picture is ok, I still don't understand.
(I've tried 256256 JPG, 256256 PNG, 400400 JPG, and 400400 PNG with the same problems I mentioned earlier.)
May I ask, how do you deal with the pictures you gave me?
from dualstylegan.
I just downloaded your image in your first reply and cropped it to 256*256 using Paint app of Windows.
Our method supports non 256*256 inputs. The example image is 1535*1024
https://github.com/williamyang1991/DualStyleGAN/blob/main/data/content/unsplash-rDEOVtE7vOs.jpg
from dualstylegan.
Related Issues (20)
- Why " W+ " encoder giving fully different style transformation ? HOT 23
- How to use this code in mac OS and building in IOS Device ? HOT 1
- 卡通化的人物可以保留人物的真实感吗? HOT 1
- Why dose the destylization process work? HOT 3
- 灌篮高手风格模型 HOT 1
- """Add --wplus in style_transfer.py to use original w+ pSp encoder rather than z+.""" integrate in demo of Hf spaces HOT 3
- Toon images HOT 2
- integrate stable diffusion pretrained models
- How is this picture drawn? HOT 1
- Memory issue while toonifying the image using "VToonify" but not while style transfering the image using "DualStyleGAN" why ?
- AttributeError: module 'model.stylegan' has no attribute 'lpips' HOT 1
- RuntimeError: mat1 dim 1 must match mat2 dim 0 HOT 1
- RuntimeError: input must be contiguous HOT 2
- pre-train ConditionalDiscriminator HOT 1
- 生成图片的脖子有痕迹 HOT 1
- Error occured when pretraining dualstylegan HOT 2
- Train with w-plus pSp encoder. HOT 2
- the gpu memory usage of finetuning dualstylegan on 8 gpus HOT 2
- Apart from Human images
- Freeze/crash in web demo on reconstruct_face()
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 dualstylegan.