Comments (8)
Hi Ahmet,
I ran online_test.py
and it doesn't have any error and creates 2 json files:
Opt_clf.json
Opt_det.json
can you explain what are these jsons?
and my question is, Is it possible to run your model to test it in real time using webcam?
if it is can you explain the procedure?
I'm testing it with the model that trained by egogesture
dataset and I want to test it on my laptap 's webcam
from real-time-gesrec.
Hi @sanaz97 ,
Those json
s are simply for saving the parameters where you specified for classifier
and detector
architectures. It does not used in the code. You do not need to worry about them unless you want to rerun the test with exactly the same settings you may use them as reference for yourself.
It is possible to run these models with a wabcam but that will require different data loading procedure. Please check opencv specifically cv2.VideoCapture()
method. And with a quick search I found this medium blog where it explain how to run a keras model on webcam video. As long as you capture the data from webcam and cast the frames into torch.FloatTensor
you can run your model like online_test.py
with different data loading.
from real-time-gesrec.
Hi,
How to feed input to classifier in online_test.py
using tensor.float .
I tried ,
frame= np.reshape(frame,(1,1,1,512,512)) frame=cv2.normalize(frame,None,alpha=0,beta=1,norm_type=cv2.NORM_MINMAX,dtype=cv2.CV_32F)
input_clf = torch.from_numpy(frame).float()
outputs_det = classifier(inputs_clf)
I get the following error,
RuntimeError: invalid argument 2: input image (T: 1 H: 32 W: 16) smaller than kernel size (kT: 2 kH: 3 kW: 3) at /pytorch/aten/src/THCUNN/generic/VolumetricAveragePooling.cu:57
from real-time-gesrec.
@sathiez this is not related with this issue, Please open a new one for it!!.
from real-time-gesrec.
Is the homepage simulator code available?
from real-time-gesrec.
@ahmetgunduz Is the home simulator code available?
from real-time-gesrec.
Unfortunately it is not available. What I did back then, using matplotlib simulation plot on class probabilities on a sample video from Egogesture.
from real-time-gesrec.
Hello, may I know how to run the recognition_model with RGB camera? Which code file to run and where should I put the pretrained model?
from real-time-gesrec.
Related Issues (20)
- how to run online_test_video.py file with CPU
- Is the label "None" used in the training of classifier? HOT 1
- Thank for your novel work. I have a question: What is the difference between resume_path and pre_trained_path on bash script? THank you so much
- running results
- courses
- How to do the inference with pretrained model?
- bugs in egogesture_online.py line155,in make_dataset
- Prediction accuracy in the nvgesture dataset is poor HOT 4
- Help required to run the code with Egogesture dataset HOT 1
- Similar project which also recognize hand gestures
- bash run_offline.sh没有
- when i want to train my own dataset,how to set the sample_duration?
- Training from scratch
- Running a test locally with webcam
- Some questions about the code in nv_online.Py
- about the size of coustom train dataset
- question of the first conv layer parameter
- confusion matrix
- How to use inference.py?
- Beginner in Deep learning
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from real-time-gesrec.