|
Download README.md from toqi/Gasformer: direct link, hf CLI and curl.
- Browser
- Download file 2.51 kB
-
https://huggingface.co/toqi/Gasformer/resolve/main/README.md
- Command line
-
hf download hf://toqi/Gasformer/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/toqi/Gasformer/resolve/main/README.md
2.51 kB
| library_name: mmsegmentation | |
| pipeline_tag: image-segmentation | |
| license: cc-by-nc-4.0 | |
| datasets: | |
| - toqi/Gasformer | |
| tags: | |
| - methane | |
| - gas-detection | |
| - optical-gas-imaging | |
| - segmentation | |
| - gasformer | |
| # Gasformer | |
| Checkpoints for **Gasformer: A Transformer-based Architecture for Segmenting Methane Emissions from Livestock in Optical Gas Imaging**. | |
| Paper: [arXiv](https://arxiv.org/abs/2404.10841) | [CVF](https://openaccess.thecvf.com/content/CVPR2024W/Vision4Ag/html/Sarker_Gasformer_A_Transformer-based_Architecture_for_Segmenting_Methane_Emissions_from_Livestock_CVPRW_2024_paper.html) | [IEEE Xplore](https://ieeexplore.ieee.org/abstract/document/10678016) | Code: [GitHub](https://github.com/toqitahamid/Gasformer) | Data: [Hugging Face](https://huggingface.co/datasets/toqi/Gasformer) | Project: [AI for Greener Livestock](https://ai-greener-livestock.github.io/) | |
| ## Checkpoints | |
| | Folder | Dataset | Checkpoint | Config | | |
| |---|---|---|---| | |
| | `CR/` | CR (Dairy Cow Rumen Gas), binary | `CR_best_mIoU_iter_160000.pth` | `gasformer-160k_CR-512x512.py` | | |
| | `MR/` | MR (Controlled Methane Release), 10 flow-rate classes and background | `MR_best_mIoU_iter_160000.pth` | `gasformer-160k_MR-512x512.py` | | |
| Each checkpoint is the best-mIoU checkpoint of a 160k-iteration MMSegmentation run at 512x512. It was trained on the official split of the dataset (`official_split.csv`). | |
| ## Usage | |
| ```bash | |
| git clone https://github.com/toqitahamid/Gasformer.git | |
| hf download toqi/Gasformer --local-dir weights | |
| python tools/test.py weights/CR/gasformer-160k_CR-512x512.py weights/CR/CR_best_mIoU_iter_160000.pth | |
| ``` | |
| The data are in the [Gasformer dataset](https://huggingface.co/datasets/toqi/Gasformer). Run `unpack_to_png.py` from the dataset repo to write the PNG folders that the code reads. | |
| ## License | |
| License: [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/). Commercial use is not permitted. | |
| ## Citation | |
| If you use these checkpoints, you must cite the paper below. | |
| ```bibtex | |
| @inproceedings{sarker2024gasformer, | |
| author = {Sarker, Toqi Tahamid and Embaby, Mohamed G. and Ahmed, Khaled R. and AbuGhazaleh, Amer}, | |
| title = {Gasformer: A Transformer-based Architecture for Segmenting Methane Emissions from Livestock in Optical Gas Imaging}, | |
| booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops}, | |
| month = {June}, | |
| year = {2024}, | |
| pages = {5489--5497}, | |
| doi = {10.1109/CVPRW63382.2024.00558} | |
| } | |
| ``` | |