Code Monkey home page Code Monkey logo

Comments (3)

evonneng avatar evonneng commented on July 3, 2024

Hi! Thank you for your interest! And yes, this is something I can add to the repo as a todo. Thanks for flagging this!

But to help in unblocking you for the time being, to implement the FD score that is in the paper, we adapt this function but instead of calculating the activation statistics, we calculate the statistics from the raw poses.

https://github.com/hukkelas/pytorch-frechet-inception-distance/blob/master/fid.py#L108

Diversity for the static poses was computed with 1) just taking the variance across a temporal sequence and 2) using this function:

def calculate_diversity(activation, diversity_times=10_000):
    assert len(activation.shape) == 2
    assert activation.shape[0] > diversity_times
    num_samples = activation.shape[0]
    first_indices = np.random.choice(num_samples, diversity_times, replace=False)
    second_indices = np.random.choice(num_samples, diversity_times, replace=False)
    dist = linalg.norm(activation[first_indices] - activation[second_indices], axis=1)
    return dist

Hope this helps in the meantime! Please let me know if there is any questions in the meantime.

from audio2photoreal.

liujf69 avatar liujf69 commented on July 3, 2024

Thank you for your outstanding work. I am new in this field. Could you please provide all the codes for calculating evaluation indicators?

from audio2photoreal.

evonneng avatar evonneng commented on July 3, 2024

Hi! thank you for your interest in this work! Providing the full evaluation indicators will be on our list of todo's. I just have to clean it up a bit, but will push a PR soon hopefully!

from audio2photoreal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.