7 Commits

Author SHA1 Message Date
Miao Zheng
632fb9b651 [Fix]Fix the deprecation of np.float and fix ci configuration (#2451)
## Motivation

1. numpy from 1.24 deprecated the aliases np.object, np.bool, np.float,
np.complex, np.str, and np.int
https://numpy.org/devdocs/release/1.24.0-notes.html

2. timm needs to pytorch>=1.7, so ignore test timm in pytorch 1.5 and
1.6

3. Remove install pillow as it doesn't test torchvision < 0.5

## Modification

1. np.float->np.float32
 
2. torch >= '1.7.0' -> matrix.torch != '1.5.1+cu101' && matrix.torch !=
'1.6.0+cu101' (as '1.10' < '1.7'

3. Remove install pillow
2023-01-11 13:59:27 +08:00
MengzhangLI
b4314f98c1
[Enhancement] Upgrade isort in pre-commit hook (#1270) 2022-02-08 19:06:33 +08:00
Junjun2016
441be4e435
[Dcos] Add header for files (#796)
* Add header for files

* Delete header in config files
2021-08-16 23:16:55 -07:00
sshuair
e16e0e303b
add metric mFscore (#509)
* add mFscore and refactor the metrics return value

* fix linting

* some docstring and name fix
2021-04-30 11:34:57 -07:00
sennnnn
fb24bf54b6
Fix mIoU calculatiton range (#471)
* Fix fence(IoU) = 0 when training on PascalContextDataset59;

* Add a test case in test_metrics() of tests/test_metrics.py to test the bug caused by torch.histc;

* Update tests/test_metrics.py

Co-authored-by: Jerry Jiarui XU <xvjiarui0826@gmail.com>

Co-authored-by: Jerry Jiarui XU <xvjiarui0826@gmail.com>
2021-04-14 08:37:23 -07:00
谢昕辰
e86a87f060
pytorch metrics implementation (#430)
* pytorch metrics impl and test

* support list[str] input, delete unused test code and delete numpy version

* modify input data type

* add docstring and unitest of filename inputs

* add indents in docstring and use tempfile lib to create dir

* using with statement
2021-03-29 09:49:14 -07:00
Junjun2016
993be2523b
add dice evaluation metric (#225)
* add dice evaluation metric

* add dice evaluation metric

* add dice evaluation metric

* support 2 metrics

* support 2 metrics

* support 2 metrics

* support 2 metrics

* fix docstring

* use np.round once for all
2020-11-23 19:21:22 -08:00