GithubHelp home page GithubHelp logo

mohamedsebaie / fight_detection_from_surveillance_cameras-pytorch_project Goto Github PK

View Code? Open in Web Editor NEW
28.0 6.0 10.0 212.63 MB

Fight Detection From Surveillance Cameras by fine-tuning a PyTorch Pretrained Model

Home Page: https://pypi.org/project/Fight-Detection/0.0.3/

License: MIT License

Python 0.46% Jupyter Notebook 99.54%
pytorch resnet-18 3dcnn streaming pretrained-models pretrained-weights pytorch-implmention pytorch-cnn computer-vision transfer-learning

fight_detection_from_surveillance_cameras-pytorch_project's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fight_detection_from_surveillance_cameras-pytorch_project's Issues

permission denied to access google drive link

Access denied with the following error:

Cannot retrieve the public link of the file. You may need to change
the permission to 'Anyone with the link', or have had many accesses. 

You may still be able to access the file from the browser:

 https://drive.google.com/uc?id=1MWDeLnpEaZDrKK-OjmzvYLxfjwp-GDcp 

infer error

when I run the code python -m infer --modelPath="./Models/model_16_m3_0.8888.pth" --streaming=False --inputPath='/mnt/Data/ProjectCode/fightDetection/Fight_Detection_From_Surveillance_Cameras-PyTorch_Project/dataset/fight/fi001.mp4' --outputPath="./outputVideo.mp4" --sequenceLength=16 --skip=2
I get that error:
Traceback (most recent call last): File "/home/dong/.conda/envs/fightDetection/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/dong/.conda/envs/fightDetection/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/mnt/Data/ProjectCode/fightDetection/Fight_Detection_From_Surveillance_Cameras-PyTorch_Project/infer.py", line 35, in <module> main() File "/mnt/Data/ProjectCode/fightDetection/Fight_Detection_From_Surveillance_Cameras-PyTorch_Project/infer.py", line 25, in main start_streaming(model, args.inputPath) File "/mnt/Data/ProjectCode/fightDetection/Fight_Detection_From_Surveillance_Cameras-PyTorch_Project/FDSC/Fight_utils.py", line 461, in start_streaming cv2.imshow("RTSP", frame) cv2.error: OpenCV(4.6.0) /io/opencv/modules/highgui/src/window.cpp:967: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow'

It seems occurred some error, than no frame return. So get that error. Could you help me to solve it.

ModuleNotFoundError: No module named 'FDSC'

I run
python -m infer
--modelPath="./Models/model_16_m3_0.8888.pth"
--streaming=False
--inputPath="./dataset/fight/fi148.mp4"
--outputPath="./outputVideo.mp4"
--sequenceLength=16
--skip=2
--showInfo=True

get this error!

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.