开源软件名称(OpenSource Name):ServiceNow/LCFCN开源软件地址(OpenSource Url):https://github.com/ServiceNow/LCFCN开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):ServiceNow completed its acquisition of Element AI on January 8, 2021. All references to Element AI in the materials that are part of this project should refer to ServiceNow. (Try in a Colab)LCFCN - ECCV 2018Where are the Blobs: Counting by Localization with Point SupervisionMake the segmentation model learn to count and localize objects by adding a single line of code. Instead of applying the cross-entropy loss on dense per-pixel labels, apply the lcfcn loss on point-level annotations. Usage
from lcfcn import lcfcn_loss
# compute an CxHxW logits mask using any segmentation model
logits = seg_model.forward(images)
# compute loss given 'points' as HxW mask (1 pixel label per object)
loss = lcfcn_loss.compute_loss(points=points, probs=logits.sigmoid())
loss.backward() Predicted Object LocationsExperiments1. Install dependencies
This command installs pydicom and the Haven library which helps in managing the experiments. 2. Download Datasets
3. Train and Validate
4. View Results3.1 Launch Jupyter from terminal
3.2 Run the following from a Jupyter cellfrom haven import haven_jupyter as hj
from haven import haven_results as hr
try:
%load_ext google.colab.data_table
except:
pass
# path to where the experiments got saved
savedir_base = <savedir_base>
# filter exps
filterby_list = None
# get experiments
rm = hr.ResultManager(savedir_base=savedir_base,
filterby_list=filterby_list,
verbose=0)
# dashboard variables
title_list = ['dataset', 'model']
y_metrics = ['val_mae']
# launch dashboard
hj.get_dashboard(rm, vars(), wide_display=True) This script outputs the following dashboard CitationIf you find the code useful for your research, please cite: @inproceedings{laradji2018blobs,
title={Where are the blobs: Counting by localization with point supervision},
author={Laradji, Issam H and Rostamzadeh, Negar and Pinheiro, Pedro O and Vazquez, David and Schmidt, Mark},
booktitle={Proceedings of the European Conference on Computer Vision (ECCV)},
pages={547--562},
year={2018}
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论