Code Monkey home page Code Monkey logo

fire-detect-nn's Introduction

Wildfire detection with neural networks

fire

Quickstart

  1. Download the repository and pretrained weights
git clone [email protected]:tomek-l/fire-detect-nn.git
cd fire-detect-nn
wget https://dl.dropbox.com/s/6t17srif65vzqfn/firedetect-densenet121-pretrained.pt --directory-prefix=weights/
  1. Inference on pretrained weights
pip3 install -r requirements.txt
python3 inference.py 
  1. Training & Testing
python3 train.py # training 
python3 train-with-gradcam.py # for the model with gradcam (for the heatmap output)
python3 test.py # evaluation

For the GradCAM heatmap generation use jupyter notebook and navigate to inference-video.ipynb

fire-detect-nn's People

Contributors

dependabot[bot] avatar tomasz-lewicki avatar

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fire-detect-nn's Issues

Colab Demo?

Hello, Thank you for your great work
Can you provide a colab notebook demo of this amazing repo, It will help everyone and it will be much appreciated,
Thank you

the resnet checkpoint can't be loaded

Hi.
I downloaded the resnet50-epoch-15-valid_acc=-1-test_acc=0.9856.pt checkpoint but in inference part, I can not load it. It gives me an Error while loading:

device = "cuda:0"
m = torch.load('./weights/resnet50-epoch-8-valid_acc=0.97-test_acc=-1.00.pt')
m = m.to(device)
m.eval()

the error is:
in _load result = unpickler.load()
ModuleNotFoundError: No module named 'model'

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.