Coder Social home page Coder Social logo

angusg / deep-learning-dreissenid Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 95.2 MB

Source code for reproducing "Predicting Dreissenid Mussel Abundance using Deep Learning" by Galloway et al..

License: GNU Affero General Public License v3.0

Jupyter Notebook 95.40% Python 0.26% Makefile 0.01% HTML 4.20% CSS 0.05% JavaScript 0.09% Batchfile 0.01%
artificial-intelligence computer-vision deep-learning dreissena great-lakes machine-learning semantic-segmentation

deep-learning-dreissenid's People

Contributors

angusg avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

deep-learning-dreissenid's Issues

Generate v1.0.1 dataset

Remove 2 images that correspond to the same Analysis ID, and remove the ignore label=255, it should be background instead.

Mussel size distribution

Dominique:

With a bit of morphological operations (e.g. top-hat+watershed segmentation), I expect that individual mussels could be partitioned. (This could be one way to get the mussels size distribution deliverable.)

Bugfix pos_weight

The previous code introduced a dependence on the batch_size

total_mussel = 0.
total_pixels = 0.
for idx, data in enumerate(val_loader):
    total_mussel += (data[1] == 1).sum().float().item()
    total_pixels += (data[1] == 0).sum().float().item()
    print('Batch %d of %d, pos_weight=%.4f' % (idx, len(val_loader), total_mussel / total_pixels))
#pos_weight = running_mean / len(val_loader)
print('pos_weight={:.4f}'.format(total_pixels / total_mussel))

Validation, confusion matrix

Dominique

In fact, for validation I would compute contingency tables (a.k.a. confusion matrix) and note that false alarms could be in part explained by under-labelling tendencies.

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.