mocogan | MoCoGAN : Decomposing Motion and Content for Video Generation | Machine Learning library
kandi X-RAY | mocogan Summary
kandi X-RAY | mocogan Summary
This repository contains an implementation and further details of MoCoGAN: Decomposing Motion and Content for Video Generation by Sergey Tulyakov, Ming-Yu Liu, Xiaodong Yang, Jan Kautz.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Save a video using ffmpeg
- Sample from num_samples
- Sample a tensor
- Sample z_m
- Sample the content of a video
- Generate random z_content generator
- Get iteration noise
- Sample random images
- Performs the discriminator
- Splits the input into two dimensions
mocogan Key Features
mocogan Examples and Code Snippets
Community Discussions
Trending Discussions on mocogan
QUESTION
I'm reading a research paper on generating/synthesizing videos:
MoCoGAN: Decomposing Motion and Content for Video Generation
To evaluate the generated videos, they have used a metric called 'Average Content Distance'. I couldn't find any material on google related to this. Can anyone please explain what Average Content Distance means?
Here is the snippet from the paper
we first computed the average color of the generated shape in each frame. Each frame was then represented by a 3-dimensional vector. The ACD is then given by the average pairwise L2 distance of the per-frame average color vectors.
What I understood from this is as follows:
For each frame, convert rgb to gray (average of color). Then for successive frame, calculate the l2 distance i.e. sum((Frame1(x,y)-Frame2(x,y))^2)/num_pixels over all pixels for 1st and 2nd frame and similarly for successive frames. This gives ACD. Have I understood it correctly?
Also, how does this metric represents quality of a video? How can this be used to compare qualities of different generated videos? You can also point me towards some references.
Thanks!
...ANSWER
Answered 2019-May-30 at 11:42From here
First for every frame, we need to compute a vector that represents the content in that frame. This vector is called as content vector. Then compute the distance between the content vectors of consecutive frames and take their average. This gives the average content distance.
In the paper, they consider 2 kinds of videos.
- Shapes dataset: This contains very simple videos of shapes moving around. So, when you compute the average color as sum of intensity values (RGB) of each pixel and average it, you get a 3D vector. This vector remains the same independent of spatial location of the shape. This vector changes only when the shape changes.
- Human Actions dataset: Since these videos contain humans, they've used OpenFace to get a vector that represents the face (Although this vector may not represent the complete frame). They've used this vector as a representation for each frame. As long as the person remains same in the video, this vector won't change.
In essence, this vector represents the content in a frame. So, find how much this content vector changes from frame to frame. The claim is that this vector shouldn't change much since it is the same shape moving or same person performing some action.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mocogan
You can use mocogan like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page