Giter Club home page Giter Club logo

trim_bvh's Introduction

trim_bhv

This repository provides a tiny utility function trim_bvh for trimming out excerpts from character motion data in the BVH (Biovision hierarchy) format.

Usage

Invoke the trim_bvh method as follows:

import trim_bvh
trim_bvh.trim_bvh(in_file, out_file, start_time, end_time)

This command reads the file in_file and writes an excerpt of its motion to out_file, keeping only the frames between start_time and end_time (which are given in seconds). More specifically, the code retains only those the frames whose midpoints fall between start_time and end_time, inclusive.

Note: in_file is assumed to contain well-formed data in the BVH format. The code contains some basic error checking, but it has not been extensively tested. Pull requests for bug fixes and enhancements are warmly welcome!

Other resources

The code was originally created for the GENEA Challenge 2022, where it was used to crop out training, validation, and test data, and also to extract short motion stimuli for the evaluation from longer motion chunks.

For more information about the BVH format, see the file specification at https://research.cs.wisc.edu/graphics/Courses/cs-838-1999/Jeff/BVH.html.

Author and license

trim_bvh was written by Gustav Eje Henter in 2022. The code is released under a CC BY 4.0 license, as seen in the enclosed LICENSE.txt file.

trim_bvh's People

Contributors

ghenter avatar

Stargazers

 avatar

Watchers

 avatar

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.