Code Monkey home page Code Monkey logo

Comments (7)

williamyang1991 avatar williamyang1991 commented on May 30, 2024

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

tmp

Please refer to the testing options in the README.md

from dualstylegan.

SJXer avatar SJXer commented on May 30, 2024

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?
cartoon_transfer_23_dddd_overview
cartoon_transfer_53_123456_overview

from dualstylegan.

williamyang1991 avatar williamyang1991 commented on May 30, 2024

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.

SJXer avatar SJXer commented on May 30, 2024

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.
{5984ca41-9d20-49e3-a188-443ce78faeac}

from dualstylegan.

williamyang1991 avatar williamyang1991 commented on May 30, 2024

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.

tmp

from dualstylegan.

SJXer avatar SJXer commented on May 30, 2024

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.

williamyang1991 avatar williamyang1991 commented on May 30, 2024

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)

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.