Giter VIP home page Giter VIP logo

Comments (1)

OValery16 avatar OValery16 commented on June 16, 2024 1

Hi @developer888891,

For the prediction code, you just need to run the train.py with the arg "eval_only"

example: python train.py --eval_only True --resume True --config configs/config.json -g 0

For the webcam, my advice would be to use opencv and capture the different frames. For example, with this code https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_gui/py_video_display/py_video_display.html

Later you plug the image in the data loader "VideoFolder" (you can modify it a bit to get the frame directly from the webcam, it is not complicated), and after you run the prediction step with "validate(val_loader, model, criterion, train_data.classes_dict)"

If you like you like this project, feel free to leave a star. (it is my only reward ^^)

Olivier

from tutorial-about-3d-convolutional-network.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.