Comments (4)
Hello, @oszilevi, does my answer explain this question clearly? You can use my recently updated repository, which has been stripped of redundant code. 😊
from common_metrics_on_video_quality.
Thank you for your question.
TLDR
As for the FVD calculation implementation of styleganv, there is no need to use the function get_fvd_logits
.
our implementation
In our calculation process calculate_fvd.py
,
- Step 1: preprocess the video to ensure the proper shape and value range.
common_metrics_on_video_quality/calculate_fvd.py
Lines 30 to 31 in 241f953
- Step 2: use pre-trained model (i3d) to get the feature space tensor of the video.
common_metrics_on_video_quality/calculate_fvd.py
Lines 47 to 48 in 241f953
- Step 3: calculate FVD score
about Step 2
In our function get_fvd_feats
, it calls the function get_feats
.
common_metrics_on_video_quality/fvd/fvd.py
Lines 53 to 57 in 241f953
the input of the function get_feats
is the video, and the output is the i3d embedding. and the parameter return_features=True
makes the output as features not logits.
common_metrics_on_video_quality/fvd/fvd.py
Lines 43 to 50 in 241f953
there is no need to use the function get_fvd_logits
. I didn't comment out this function, and I'm sorry if that misinterpreted you, but this code is redundant.
from common_metrics_on_video_quality.
yes! Thank u very much 👍🏻
from common_metrics_on_video_quality.
Hello, I updated the repo just now, and it can support 2 pytorch FVD calculation methods (styleganv and videogpt).
As you say, the method calculates 'the fvd score with the output of the logits layer' is the implementation of videogpt.
I must say the method of videogpt is not wrong, instead, is also right, maybe its function name is not good...
Actually, logits are features
In google's origin I3D model, the tail of the model structure is 'Mixed_5c', 'Logits', and 'Predictions'. here
The two models both remove the module of 'Predictions' (softmax):
- As for i3d_pretrained_400.pt, it use the I3D model file in our repo, the model end with 'Logits', without 'Predictions' (softmax). So it is right.
- As for i3d_torchscript.pt, it use the parameter
return_features=True
. So is it right.
Finally, in our repo, I copied the file with the original function name, only importing it with an alias to refer to it.
common_metrics_on_video_quality/calculate_fvd.py
Lines 15 to 22 in 7098471
I apologize for my upper incomplete and incorrect answers.
from common_metrics_on_video_quality.
Related Issues (12)
- How to calculate FVD on the whole dataset? HOT 3
- About 8 frames FVD HOT 1
- difference between i3d_pretrained_400.pt and i3d_torchscript.pt HOT 2
- Maybe a typo? HOT 2
- Should images be normailzed to [-1, 1] or [0, 1]? HOT 3
- Runtime error in I3D model HOT 16
- question about video shape and frames HOT 2
- clip_timestamp in calculating FVD HOT 5
- Calculation bug with scipy>1.9 HOT 2
- read HOT 2
- why fvd resize img to (224, 224), Is it suitable for high-resolution? 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 common_metrics_on_video_quality.