-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Predict the trained model #22
Comments
There is a See code here: https://github.com/metal3d/keras-video-generators/blob/master/src/keras_video/generator.py#L278 e.g.: # get 20% of data for test
gen = VideoFrameGenerator(glob_pattern='data/{classname}', split_test=.2)
test_gen = gen.get_test_generator() |
Hey,@metal3d Above answer was really helpful, I saw your blog on https://medium.com/smileinnovation/training-neural-network-with-image-sequence-an-example-with-video-as-input-c3407f7a0b0f. |
The test accuracy is made by using I will create a notebook with example for training and evaluation. I'm only a bit busy for a couple of days, sorry for that. |
@metal3d I have implemented your mobile net model with SlidingVideoGenerator. How can I test predictions on the frames of my own video outside of the dataset on an individual set of frames like frame (1-5), frame (2-6), ... and so on to see what model predicts the particular instance of the video? I would be grateful if you could help me with this. |
Hi! I've been using your generator and a modified version of your model and its been working amazingly well. I wanted to ask if the evaluation/test notebook is available yet. Something like the code you used to check your model in your blog would be extremely helpful. Or being able to get a prediction on individual video inputs. |
@Rehan-Rehman-Punjwani Sorry for the delay, I'm very busy for a while. @BANANAPEEL202 I will make a simple Notebook to show the usage of training / test, you're right, it's missing |
@metal3d. Thank you so much! |
@metal3d Thank you for a fantastic notebook, great explanation, and detailed work! Since you are super busy and did not have a chance (understandably) to create the notebook, I was wondering how to get the Here is a snippet of your good work
How can we get the for example to use in:
Thank you again! :) |
Does this work for you?
|
@LS4203 It does. Thanks! |
How to use generator for test data when test data is situated in different directory? |
I get this weird issue: "local variable 'nbtrain' referenced before assignment" |
I will add Codacy check and change the test system. I'm very busy for a while, sorry to not help a lot for now |
The problem is here: https://github.com/metal3d/keras-video-generators/blob/master/src/keras_video/generator.py#L169 I will fix this as soon as I can. |
@metal3d I have trained the model using VideoFrameGenerator, and now want this model to predict in realtime, how can I do that? |
@rohannaik-3 the prediction is not convered by my package. The package is only a generator to train a model. If I'm not wrong, when you do image recognition, you don't use Image generator from keras package, it's the same for video generator :) Everything depends on how you capture videos (from file, from webcam, from stream) |
How can I use the videoframe generator to create a test dataset?
I see you have done it in your blog, but without the code.
could you please upload that part of code?
Thanks.
The text was updated successfully, but these errors were encountered: