Video inference sample code
See original GitHub issueI used my own video classification trained with the configuration of ucf101. It seems that there is a little overfitting. I want to use my code for inference, but I can’t find a related tutorial. I can only find it, and I don’t know what to do next. plaese help me @mannatsingh
from classy_vision.generic.util import load_checkpoint
from classy_vision.models import ClassyModel
# This is important: importing models here will register your custom models with Classy Vision
# so that it can instantiate them appropriately from the checkpoint file
# See more information at https://classyvision.ai/api/models.html#classy_vision.models.register_model
from classy_vision import models
# Update this with your actual directory:
checkpoint_dir = '/home/sucom/hdd_1T/project/video_rec_0831/ClassyVision/checkpoint_hand/model_phase-2198_end.torch'
checkpoint_data = load_checkpoint(checkpoint_dir)
model = ClassyModel.from_checkpoint(checkpoint_data)
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Roboflow Video Inference - GitHub
Example showing how to do inference on a video file with Roboflow Infer ... The infer script is built with argbash (a code...
Read more >Video Inference with Roboflow
The process is simple: 1) split your video into frames, 2) get a prediction from your model from each frame, and 3) reconstruct...
Read more >9. Inference on your own videos using pre-trained models
In this tutorial, we provide a script for you to make human activity predictions on your own videos. The only thing you need...
Read more >Image and Video Inference using MMDetection - DebuggerCafe
Image and Video Inference using MMDetection ... In this tutorial, we will use pretrained object detection and instance segmentation models for ...
Read more >OpenVINO Samples
Hello Classification Sample – Inference of image classification networks, ... To run the sample applications, use images and videos available online in the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the code sample, @shinianzhihou !
This is how I make my inference. May be useful