You can download the pre-trained weight files in this link, and put it in the AGC_final directory.
torch==1.8.1
opencv
albumentations
timm
python-bidi
soynlp
pandas
matplotlib
seaborn
- download the pre-trained .pth weight files in the save_models. There are many pre-trained models for running the code.
- run the prediction code, and specify your own video dataset directory with pre-defined.json. We provide the sample video.mp4 and pre-defined.json files.
python main.py --video_root_dir sample_dataset
- You can see the predicted json files in the ./debug/answer.
- You can also see the first ocr prediction results in the ./debug/first_ocr_results