Code Monkey home page Code Monkey logo

epic-kitchens-55-lib's Introduction

EPIC-KITCHENS-55 python library

CircleCI status badge codecov Documentation Status PyPI PyPI - Python Version

A library for easily integrating the EPIC-KITCHENS-55 egocentric dataset in your experiments

Install

$ pip install epic-kitchens

Details

  • Segmentation scripts for splitting raw video frames/flow into action segments
  • GulpIO adapter for ingesting and reading the dataset. This works particularly well for PyTorch and Tensorflow models.
  • Dataset classes for loading and augmenting data
  • Utilities for converting between frame indices for RGB and flow.

See the CHANGELOG for release notes

WARNING: If you have used v1.4.0 or below to gulp flow, please delete the data and regulp due to an issue in reading files from disk, the gulped frames will be unordered instead of ordered by frame index (i.e. lexicographically).

Check out the documentation on Read the docs

epic-kitchens-55-lib's People

Contributors

jonmun avatar mwray avatar pyup-bot avatar willprice avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

epic-kitchens-55-lib's Issues

Example code to gulp dataset with manual downloading

Is there any example code to gulp dataset with manual downloading.
For example, i have downloaded all the tar files for rgb and flow.
I have also extracted them into frames. But I don't know how to gulp it.

Add metrics code

Provide methods to compute:

  • Top-1 accuracy
    • verbs
    • nouns
    • actions
  • Top-5 accuracy
    • verbs
    • nouns
    • actions
  • Per-class recall on many shot classes
    • verbs
    • nouns
    • actions
  • Per-class precision on many shot classes
    • verbs
    • nouns
    • actions

Given a groundtruth data frame containing the correct verb, noun, and action for a given action segment (identified by UID)

wrong version in imageio

When importing epic_kitchens.gulp.visualisation, I get an error message :
imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead.'
but installing this library does not help.

It looks that you are depending on an earlier version of imageio, like the 2.4.1
Maybe requirements.txt should be edited accordingly

In [30]: import epic_kitchens.gulp.visualisation
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-30-8a3f6f3f60a0> in <module>()
----> 1 import epic_kitchens.gulp.visualisation

/usr/local/lib/python3.5/dist-packages/epic_kitchens/gulp/visualisation.py in <module>()
      2 import numpy as np
      3 from abc import ABC
----> 4 from moviepy.editor import ImageSequenceClip
      5 from moviepy.video.io.html_tools import ipython_display
      6 from typing import List, Union, Tuple

/usr/local/lib/python3.5/dist-packages/moviepy/editor.py in <module>()
     24 # Checks to see if the user has set a place for their own version of ffmpeg
     25 if os.getenv('FFMPEG_BINARY', 'ffmpeg-imageio') == 'ffmpeg-imageio':
---> 26     imageio.plugins.ffmpeg.download()
     27 
     28 # Clips

/usr/local/lib/python3.5/dist-packages/imageio/plugins/ffmpeg.py in download(directory, force_download)
     38 def download(directory=None, force_download=False):  # pragma: no cover
     39     raise RuntimeError(
---> 40         "imageio.ffmpeg.download() has been deprecated. "
     41         "Use 'pip install imageio-ffmpeg' instead.'"
     42     )

RuntimeError: imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead.'

My solution

to 'solve' this I installed the aforementioned version:
sudo pip3 install imageio==2.4.1

object detection support

Hi,

Please correct me if im wrong, but currently there isnt any support for object detection experiments in the library right?

gulp audio

Hello,

Would it make sense to Gulp audio too ?
I'm doing it, but I wonder if there is a specific reason not to do it...

Why not hide `data_dir` folder?

Is there a particular reason for which the default data_dir isn't a hidden folder?

  • It seems a bit intrusive to create a visible folder in the $HOME of the user. Other libraries and apps (PyTorch, Jupyter, etc.) use the hidden folder pattern.

  • I do appreciate that we can set the data_dir.

BTW, thanks for providing this library to easily interact with the dataset.

Extract flow images for every rgb image

Hi,
I've use the following method to extract optical flow and RGB images:

$ python -m epic_kitchens.preprocessing.split_segments \
    P01 \
    root_dir/P01 \
    output_dir/P01 \
    EPIC_train_action_labels.pkl \
    flow \
    --fps 60 \
    --frame-format 'frame_%010d.jpg'

But it seems that optical flow images are extracted every two RGB images. Is it possible to extract optical flow image for every RGB image? Thank you!

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.