Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • F five-video-classification-methods
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 47
    • Issues 47
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Matt Harvey
  • five-video-classification-methods
  • Merge requests
  • !70

Add a demo script to make predictions on a single sample.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Matt Harvey requested to merge add-demo-script into master Feb 15, 2018
  • Overview 1
  • Commits 2
  • Pipelines 0
  • Changes 3

This quick demo script allows us to specify a video filename (more of an ID, really) that is in our train or test set, and then using a trained model checkpoint, we can make predictions.

Usage: python demo.py

Before running, edit the variables within that file to specify the checkpoint location, model type, video name, etc.

Note that this is quite a rough script and is more for illustration purposes than anything. The main limitation is that the video we're making predictions for must already have its frames extracted and sequences generated (if applicable) before making predictions.

A true demo script would instead take an original video file, extract frames, generate features (if applicable) and then make predictions. That will come later.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: add-demo-script