| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
An API for detecting fires in images using deep learning.
Deep learning has the power to potentially save millions of dollars (and more importantly, lives) in places like California where the annual "fire season" arrives every Fall.
We built this API to show how the technology can fight this and other crises, and inspire our students to do the same.
To classify your own images, you can use the live API: use the link here to read the documentation and send requests.
You only need to use ONE of the following options:
You can download this repository and run it using Docker:
$ docker-compose up
Then head over to http://localhost:8000/docs or http://localhost:8000/redoc in the browser. Here is a screenshot exemplifying what you might see (specifically for Redoc):
Alternatively, you can also make a virtual environment. This is recommended, as it will allow you to also run the automated tests as well (discussed below). Here is the command to install the dependencies locally:
$ python3 -m venv env $ source env/bin/activate (env) $ python -m pip install -r requirements.txt
And then run the app using uvicorn in the Command Line:
(env) $ uvicorn app.main:app --reload
Then head over to http://localhost:8000/docs or http://localhost:8000/redoc in the browser.
To run the tests, you will first need to set up a Python virtual environment to run this project locally (see above). Then you can run the automated tests from the root directory, using the command line:
(env) $ pytest
If there are no failures, then you should be good to go! You can inspect the code for the tests in app/main_test.py if you wish.
The image dataset and neural network model used for the production API will be documented on the Releases page of this repository.
To customize this project for your own purposes, I'd recommend doing the following:
| Back | FazBrowse Home | New Git URL |