To install this extension, first you need to clone this repo
pip install -r requirements.txt
To download detector and classifier checkpoint, click here
- You need to run this command to open API:
python api.py --detector_path path/to/detector/checkpoint --classifier_path path/to/classifier/checkpoint
- Open chrome browser extension and open developer mode. Click
Load unpacked
and select the directory you cloned
- Open a random youtube video and click the extension icon -> Movie Controller
- Tick to checkbox and enjoy your video
- To start training, run:
python -m classifier.run --command 'train' --path_to_config classifier/config/*.yaml
- If you want to run ViT without MAE pretrain, just run
python VIT_classifier.py
- If you want to run ViT with MAE pretrain,
First, run:
After finishing training, load the MAE checkpoint in the VIT_classifier.py file, and run:
python MAE.py
python VIT_classifier.py