Giter VIP home page Giter VIP logo

gun-detect's People

Contributors

alopez3702 avatar

Stargazers

 avatar  avatar

gun-detect's Issues

Too many files in the Minio Client

This project currently does not delete files from the Minio Client once they have been used by Session 2. Theoretically, since those images have been used by Session 2, they do not need to be used again and can safely be deleted, thus freeing up space in the Minio Client. However, it was feared that deleting files may cause other issues. We also didn't want others to concern themselves with "garbage collection".
Because of this, if the code is left running for a long time, one could potentially fill up their Minio Client.
To fix this issue, code has been commented into Session 2. This code deletes files from the Minio Client once they have been used by Session 2.
To use it, just un-comment it. See lines 177 and 189 - 198 on camera-person-session-two.py

Using the model for detecting BOTH gun types causes an error.

In person-camera-session-two.py, when using the bash command BOTH, it loads the model files called 'frozen_inference_graph.pb' and 'frozen_inferecne_graph.txt'. On line 213, an error appears:
KeyError: "the name 'final_result:0' refers to a tensor which does not exist. The operation, 'final_result', does not exist in the graph."
It is believed this is involved in how the model was trained. During training the model and/or freezing the inference graph, a tensor is made. The code is looking for the tensor called 'final_result:0', but can't find it. The model may need to be retrained, and during training, a tensor called 'final_result:0' would need to be made. Some adjustments may need to be made to the config file used to train it or to the code export_inference_graph.py, although it is unknown which changes need to be made.
Even though the model is trained, it effectively can't be used until this error is resolved.

Session 1 sometimes won't store files to the Minio Client bucket

Sometimes, when trying to store newly created files into the Minio Client bucket that is being used, Session 1 just will fail in trying to store them. This doesn't invoke any errors and the cause is unknown. What is known is that it only happened when trying to store files in a Minio Client bucket that was stored with many, many, many files.
To fix the problem, I changed which bucket I was storing images to and began to store images in an empty bucket. After that, the issue went away completely and files were being stored.
The code as it is creates a bucket called "test" in the Minio Client and stores files to that bucket. If one wants to change which bucket is being used, they'll have to change every instance of "test" in Session 1 and Session 2.

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.