Skip to content

CommodoreArz/NextStepPredictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next Step Predictor

Getting Started

Downloading SwinBERT model

Setting up language model

Libraries

To install the libraries, please run pip install -r ./requirements.txt NOTE: Make sure to run with PyTorch >= 1.6 (any version with AMP integrated into it)

Inference Videos

When adding videos for inference, make sure to place the videos in the following format example:

If you are running inference on a video titled <video_title>.mp4, make sure to place all segments of <video_title>.mp4-- <video_title>_1.mp4, <video_title>_2.mp4, ..., <video_title>_n.mp4 -- in ./Videos/<video_title>

The folder layout should look like this:

.
├── SwinBERT
├── Model_Train
├── Models
└── Videos
    └── <video_title>
        ├── <video_title>_0.mp4
        ├── <video_title>_1.mp4
        ├── <video_title>_2.mp4
        └── <video_title>_3.mp4

For downloading the videos used in the datasets provided, please refer to the YouCook2 dataset.

Running Inference

In order to run inference of the dataset of your choice please run the following:

python inference.py --test_dataset <test_dataset_path> --video_dir <video_folder_dir> --lang_model <lang_model_dir> --device <device> --batch_size <testing_batch_size>

An example of running inference would be:

python inference.py --test_dataset ./test.csv --video_dir ./Videos --lang_model ./Models/FLAN-T5-small-merged --device cuda --batch_size 32

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages