Comments (5)
Hi Chris! Thanks for the suggestion!
In case this helps to unblock you, this is possible to do by passing in a reference image (e.g. if it's green or some image background) into this function:
for instance, if you wanted to add an image background, it would be something like this:
tmp = cv2.imread(f"<path/to/image>")
image_bg = th.zeros_like(tex_rec)
image_bg[:, :3, ...] = (
th.from_numpy(tmp.transpose(2, 0, 1)).float().cuda().unsqueeze(0)
)
or if you wanted to make it a solid color, just fill image_bg with some RGB color. There will be some color calibration steps you will have to do to get it to match green (like inverting this white balancing function:
) but this should be the general idea. Hope this helps for the time being!from audio2photoreal.
tmp = cv2.imread(f"<path/to/image>")
image_bg = th.zeros_like(tex_rec)
image_bg[:, :3, ...] = (
th.from_numpy(tmp.transpose(2, 0, 1)).float().cuda().unsqueeze(0)
)
hi, @evonneng thanks for the explain.
I'd like to know what the tex_rec variable in your hint code means? How should I pass the parameters?
I actually want to replace the animated characters in the demo with images of myself, is it possible?
from audio2photoreal.
You unfortunately can not change identity of the avatars. Only the four pre-trained models are available.
from audio2photoreal.
You unfortunately can not change identity of the avatars. Only the four pre-trained models are available.
thanks a lot, and If I want change identity of the avatars, what should I can do ?
from audio2photoreal.
Closed as the guys above probably want to create new github issues to track
from audio2photoreal.
Related Issues (20)
- How to change the position of camera/model? HOT 1
- Training the model with different data format HOT 1
- The lips regressor predicts unexpected result HOT 5
- Switching from Recording to Uploading Audio in a Demo: Is it Possible? HOT 1
- Why the data is not as in the README ? HOT 2
- Models and pre-requisites models unavailable HOT 3
- Does it support languages other than English? HOT 1
- Models and pre-requisites models unavailable HOT 3
- What model was used to extract the body pose ? HOT 4
- Multiple GPUs DDP error HOT 5
- Data acquisition and processing HOT 3
- The evaluation code for lip reconstructions HOT 1
- Is it possible to run the demo in a laptop without GPU? HOT 1
- Training inference time and test data HOT 2
- How to train a new model from scratch HOT 1
- Visualize 2 avatars in the same scene, just like the introduction page HOT 1
- Replancement of fairseq HOT 1
- Video data HOT 1
- 1
- when i run python -m demo.demo, I test a audio,have a error? 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 audio2photoreal.