Comments (6)
Hey glad that you could get an output.
mh maybe it's the landmark detector, check how many faces it detects, sometimes it fails and detects smaller faces in the image.
Can you give me a link to the inputs I'll try them out and see what's failing.
Here it's a colab so you can prototype better:
https://colab.research.google.com/drive/1o3C92DuLKe92g6usNRiIS9jZbaWWKsNN
The Headless template it's supposed to not have the head, you can remove that with photoshop, but the idea is to use a filler Model but I didn't implement that yet.
Another thing, the style transfer, and color transfer are optional if you want to get a more natural result.
With regards to the function, it's fine, the issue is the inputs, more than sure the face landmark detector failed to get the correct face.
from headswap-machine.
Hi Ramgen!
Thanks for confirm about the problems, i will dig into landmark detector to find out what am i doing wrong.
The input images that i used is random images from internet or you can take my results from the attached file bellow.
I would like to try your prototype on Colab and sent the request access. Could you please accept my request?
About the style transfer and color transfer, i will learn about it after get throw this problems.
Thank you so much!
from headswap-machine.
Oh my bad I forgot to put it in public, it should work now.
No problem, I'll try the inputs and see what's failing.
from headswap-machine.
Hey @SonPH088
I tested the images in the colab that I sent you and this is the result.
So the notebook code is working as expected.
Maybe there is some code in the repo that is wrong, maybe I made a mistake when I was refactoring things.
If you find something wrong in the repo's code let me know.
I'll try to find the issue, to be honest, a lot of things need a big refactor
from headswap-machine.
Hi @ramgendeploy,
Sorry for the delay reply.
I am able to access and run the code on your Colab. The result is good.
I'm also compared your notebook code and code in the repo. Turn out, the problem is calling 'landmarks' function.
In line 61, swaplib/matrixTransfer/dotheswap.py :
lm = landmarks([source_path, ref_path])
it should be :
lm = landmarks(['./crop_source.jpg', ref_path])
And the head will be on the right position
Could you make change repo to everyone can avoid my issue.
Then, I will try to style transfer and color transfer.
Hope you can help me more in the future
Thanks!
from headswap-machine.
Hey @SonPH088
Issue has been resolved,
the problem was that in the repo it was processing the landmarks of the original image and not the cropface,
I solve it and it should be working now.
Some more info about the repo:
The headless template should not have a face, this can be done with an image inpainting model,
I need to find a good model for this.
I did one manually in the test folder using PS.
Also, I want to make a wiki section in the repo, to explain the functions in the repo.
If you find any more bugs don't hesitate to make a new issue.
from headswap-machine.
Related Issues (4)
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 headswap-machine.