You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fixed PIL size bug in ImageRecordComponent (airctic#889)
* Preliminary work on mmsegmentation integration
This is currently very crude, mostly copy/pasting of the mmdet integration with a few changes.
* Updated mmseg dataloaders based on unet implementation
* Training now kind of working!
- Fixed issue with number of classes
- Fixed dataloader issue (mask tensor size)
* Improved predictions handling
* Fixed prediction, general code clean-up
* Simplification of folder structure
* Getting closer to final structure
* Finished first structure update
- This implementation was created based on the existing mmdet integration, and some remaining, unused folders, were removed
* Attempt to fix show_batch for mmseg
* Added binary and multi-class dice coefficient metrics
* Removed test-only code in binary Dice coefficient method
* Initial support for multiple pre-trained variants
* Reformatting using black
* First version of DeepLabV3plus support
* Exceptions to elegantly handled unknown pre-trained variants
* Added all DeepLabV3 pretrained variants
* Ground truth masks saved with predictions if keep_images set to True
* Added all DeepLabV3Plus pre-training variants
* Added proper support for param_groups
* Removed erroneous pre-trained variants for DeepLabV3Plus
* Fixed erroneous DeepLabV3 pre-trained variants
* re-added default values to DeepLabV3 pretrained variants
* Improved model loading and initialization
* Improved how distributed BNs are handled
* - Proper integration of loop_mmseg
- First test!
* Updated tests
* __init__.py file
* jaccard index metric
* update init file to include multilabel dice coef
* updates to logical statements
* update to handle denominator equal to 0
* update to handle denominator equal to 0
* removed repeated code
* removed repeated code
* Getting started with seg notebook
* Formatting fix (black)
* Removed temporary file
* Added mmsegmentation to Dockerfile
* Added mmseg installation to workflows
* Updating mmcv to 1.3.7 for mmseg support
* Added artifacts to gitignore (wandb)
* Testing mim-based install in actions
* Fixing mim-based install
* Pinning mmcv version in mim installs
* Bumping mmcv-full to 1.3.13
* Improved CPU support
* Reverted workflow files to match current master
* Improved tests on CPU devices
* Update docs action to match new dependencies versions
* Better handling of the device mess?
* Attempt to remove hacky device code
* Added mmseg to soft dependency test
* changed to binary jaccard index
* delete jaccard_index
* added jaccard index
* up to date metric test files
* Fixed init for binary jaccard index
* Argument to exclude classes from multiclass dice coefficient metric
* Added background exclusion case for multilabel dice coefficient tests
* adjusted setup, need to verify values
* added comment for correct values
* updated cases and setup
* updated cases and setup
* added class map to dictionary for each case
* Adapted RLE mask saving code, might need to revisit later
* Added support for wandb logging of semantic seg masks
* Added option not to pad dimensions when creating a MaskArray object
* Fixed typo
* Resampling of masks should use nearest neighbour
* Added TODO to masks.py
* Fixed loss keys for mssg
* mmseg installation in icevision_install.sh
* Fixed typo in install script
* Fixed albumentation for polygon mask
* Black formatting
* Fix handlig of special case of Polygon masks
* Started updating getting started notebook
* More updates to the notebook
* Adding after_pred convert raw pred callback to unet fastai learner
* Fixed unet prediction when GT not available
* More fixes to unet prediction callback
* Fixing predict batch for mmseg models
* Fixed predictions conversion for mmseg
* Improved unet prediction conversion
* Black formatting
* segformer support
* Updated mmseg model creation function
* Misc comment
* Added options to install script to assist with testing (temporary)
* Black formatting
* Remove install colab script added by mistake
* Actual updated install script
* Updated semantic seg notebook
* Removed legacy cell from notebook
* Further updated notebook
* Updated "open in colab" icon URL
* Added cell to restart kernel after installation
* Reverted notebook changes for merge into master
* Started work on README
* Updated README somewhat
* Updated semantic seg notebook to match updated version on master
* Fix draw data for mask files
* Implementation of mask resizing for MaskFile objects
* Support for MaskFile obnects in draw_data
* Fixed mask display in show_batch for mask-enabled mmdet models
* import typo
* Adding warning if re-creating masks from file in draw_data
* Added warning if maskfile loaded from disc for display
* README typo fixed
* Removed temporary mmsegmentation installation option
* Reverted changes to plot_top_losses
* Disabling mmseg PL implementation for now (pending update)
* Re-added unet callback
* Fixed CI
* Actually disabled PL implementation
* Removing test file uploaded by mistake
* mmseg fastai training test
* Fixed BackboneConfig location
* Fixed formatting
* Use latest convert_raw_predictions for Unet
* Fixed Unet PL test with new raw prediction conversion method
* Removed lightning mmseg files pending proper implementation
Co-authored-by: Gabriella Lanouette <[email protected]>
"""Multi-class Dice Coefficient for Semantic Segmentation
11
+
12
+
Calculates Dice Coefficient for semantic segmentation (multi-class tasks).
13
+
14
+
Heaviliy inspired by fastai's implementation: Implement multi-class version following https://github.com/fastai/fastai/blob/594e1cc20068b0d99bfc30bfe6dac88ab381a157/fastai/metrics.py#L343
15
+
16
+
# Arguments
17
+
classes_to_exclude: A list of class names to exclude from metric computation
0 commit comments