Comments (3)
Taichi and fashion is quite limited datasets, so I would not expect them to generalise to arbitrary humans. In your case image look more similar to fashion, try fashion checkpoint and absolute transfer.
from first-order-model.
There is no much difference, just use other checkpoint taichi-cpk.pth.tar or fashion.pth.tar
from first-order-model.
Well, I did and here are the results.
This was the code:
import imageio
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from skimage.transform import resize
from IPython.display import HTML
import warnings
warnings.filterwarnings("ignore")
source_image = imageio.imread('/content/person.jpg')
driving_video = imageio.mimread('/content/taichi.mp4')
source_image = resize(source_image, (256, 256))[..., :3]
driving_video = [resize(frame, (256, 256))[..., :3] for frame in driving_video]
from demo import load_checkpoints
generator, kp_detector = load_checkpoints(config_path='config/taichi-256.yaml',
checkpoint_path='/content/gdrive/My Drive/first-order-model-checkpoints/taichi-cpk.pth.tar')
from demo import make_animation
from skimage import img_as_ubyte
predictions = make_animation(source_image, driving_video, generator, kp_detector, relative=True)
#save resulting video
imageio.mimsave('../generated.mp4', [img_as_ubyte(frame) for frame in predictions])
#video can be downloaded from /content folder
HTML(display(source_image, driving_video, predictions).to_html5_video())
Did I do something wrong?
from first-order-model.
Related Issues (20)
- Can't use an own video for colab demo HOT 6
- 把first order motion整合到现有框架里 HOT 1
- issue on requirement.txt HOT 1
- out = torch.cat([out, skip], dim=1)
- RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 28 but got size 29 for tensor number 1 in the list. HOT 4
- architecture
- Training doesn't work on custom datasets HOT 12
- model_state_dict and other details
- onxx
- About evaluation
- The model of fashion.pth.tar can not down,because it is error. HOT 1
- real time use
- Software developer
- Retraining 512x512 with 68 keypoints,then retraining 512x512 with dlib 68 keypoints detector HOT 2
- Datasets and contact details
- Cannot install correctly, What do i have to do?
- where is the checkpoint downloaded?
- Cita dgt
- Display of key points HOT 1
- Hi
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 first-order-model.