Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,135 +1,71 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
2. **IMPIC** β Iterative Mask-based Parameter Inference and Calibration: infers DM and ToA directly from segmentation masks. [Code](utils/IMPIC.py) | [Docs](utils/IMPIC.md) | [Example](test_sample/test_impic.py)
|
| 14 |
-
|
| 15 |
-
**Supported formats:**
|
| 16 |
-
|
| 17 |
-
| Format | 1-bit | 2-bit | 4-bit | 8-bit | 32-bit |
|
| 18 |
-
|--------|:-----:|:-----:|:-----:|:-----:|:------:|
|
| 19 |
-
| [PSRFITS](https://www.atnf.csiro.au/research/pulsar/psrfits_definition/Psrfits.html) (`.fits`) | β
| β
| β
| β
| β |
|
| 20 |
-
| [Sigproc Filterbank](http://sigproc.sourceforge.net) (`.fil`) | β
| β
| β
| β
| β
|
|
| 21 |
-
|
| 22 |
-
## Installation
|
| 23 |
|
| 24 |
-
#
|
| 25 |
-
|
| 26 |
-
> Requires: Python 3.10+, CUDA 11.7+, PyTorch 2.0+, [PRESTO](https://github.com/scottransom/presto), [MMDetection](https://github.com/open-mmlab/mmdetection)
|
| 27 |
-
|
| 28 |
-
```bash
|
| 29 |
-
pip install FRTSearch
|
| 30 |
-
```
|
| 31 |
|
| 32 |
-
|
| 33 |
|
| 34 |
-
```bash
|
| 35 |
-
git clone https://github.com/BinZhang109/FRTSearch.git && cd FRTSearch
|
| 36 |
-
pip install -r requirements.txt
|
| 37 |
-
```
|
| 38 |
|
| 39 |
-
##
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
| 44 |
|
| 45 |
-
### Download Model Weights
|
| 46 |
|
| 47 |
-
Download from [Hugging Face](https://huggingface.co/waterfall109/FRTSearch/tree/main/models) and place into `models/`:
|
| 48 |
-
|
| 49 |
-
```
|
| 50 |
-
FRTSearch/
|
| 51 |
-
βββ models/
|
| 52 |
-
β βββ hrnet_epoch_36.pth
|
| 53 |
-
βββ configs/
|
| 54 |
-
β βββ detector_FAST.py
|
| 55 |
-
β βββ detector_SKA.py
|
| 56 |
-
βββ ...
|
| 57 |
-
```
|
| 58 |
|
| 59 |
## Usage
|
| 60 |
|
| 61 |
-
|
|
|
|
|
|
|
| 62 |
|
| 63 |
-
|
| 64 |
-
|
|
|
|
|
|
|
| 65 |
```
|
| 66 |
|
| 67 |
-
|
| 68 |
-
|----------|-------------|
|
| 69 |
-
| `data` | Observation file (`.fits` or `.fil`) |
|
| 70 |
-
| `config` | Detector configuration file |
|
| 71 |
-
| `--slide-size` | Subintegrations per sliding window (default: 128) |
|
| 72 |
-
|
| 73 |
-
### Example
|
| 74 |
-
|
| 75 |
-
Test data can be downloaded from [Hugging Face](https://huggingface.co/waterfall109/FRTSearch/tree/main/test_sample).
|
| 76 |
-
|
| 77 |
-
```bash
|
| 78 |
-
# FAST FRB detection
|
| 79 |
-
python FRTSearch.py ./test_sample/FRB20121102_0038.fits ./configs/detector_FAST.py --slide-size 128
|
| 80 |
|
| 81 |
-
# SKA FRB detection
|
| 82 |
-
python FRTSearch.py ./test_sample/FRB20180119_SKA_1660_1710.fil ./configs/detector_SKA.py --slide-size 8
|
| 83 |
-
```
|
| 84 |
-
|
| 85 |
-
### Training
|
| 86 |
|
| 87 |
-
Download the [CRAFTS-FRT dataset](https://doi.org/10.57760/sciencedb.Fastro.00038) and place it into `CRAFTS_FRT_Dataset/` before training.
|
| 88 |
|
| 89 |
-
```bash
|
| 90 |
-
python train.py
|
| 91 |
-
```
|
| 92 |
|
| 93 |
-
### Test Samples
|
| 94 |
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
``
|
| 98 |
-
|
| 99 |
-
``
|
| 100 |
-
|
| 101 |
-
Available examples: `FRB20121102`, `FRB20201124`, `FRB20180301`, `FRB20180119`, `FRB20180212`
|
| 102 |
-
|
| 103 |
-
## Dataset: CRAFTS-FRT
|
| 104 |
-
|
| 105 |
-
The first pixel-level annotated FRT dataset, derived from the Commensal Radio Astronomy FAST Survey (CRAFTS).
|
| 106 |
-
|
| 107 |
-
| Instances | Source | Download |
|
| 108 |
-
|-----------|--------|----------|
|
| 109 |
-
| 2,392 (2,115 Pulsars, 15 RRATs, 262 FRBs) | FAST 19-beam L-band | [ScienceDB](https://doi.org/10.57760/sciencedb.Fastro.00038) |
|
| 110 |
|
| 111 |
## Citation
|
| 112 |
|
| 113 |
```bibtex
|
| 114 |
@article{zhang2026frtsearch,
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
}
|
| 119 |
```
|
| 120 |
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
## Contributing
|
| 124 |
-
|
| 125 |
-
[Open an Issue](https://github.com/BinZhang109/FRTSearch/issues) for bugs or questions. PRs welcome β see [Contributing Guidelines](CONTRIBUTING.md).
|
| 126 |
|
| 127 |
-
|
|
|
|
|
|
|
| 128 |
|
| 129 |
-
|
| 130 |
|
| 131 |
-
Built upon: [MMDetection](https://github.com/open-mmlab/mmdetection) | [PRESTO](https://github.com/scottransom/presto)
|
| 132 |
|
| 133 |
-
|
| 134 |
-
<sub>Exploring the dynamic universe with AI ππ‘</sub>
|
| 135 |
-
</div>
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: gpl-2.0
|
| 3 |
+
library_name: pytorch
|
| 4 |
+
tags:
|
| 5 |
+
- pytorch
|
| 6 |
+
- mask-rcnn
|
| 7 |
+
- astronomy
|
| 8 |
+
- object-detection
|
| 9 |
+
- frb
|
| 10 |
+
- pulsar
|
| 11 |
+
pipeline_tag: object-detection
|
| 12 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
+
# FRTSearch: Fast Radio Transient Search
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
+
**FRTSearch** is a deep learning model for detecting **Pulsars**, **RRATs**, and **Fast Radio Bursts (FRBs)** in radio astronomical observation data.
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
## Model Details
|
| 20 |
|
| 21 |
+
- **Architecture**: Mask R-CNN with HRNet backbone
|
| 22 |
+
- **Framework**: PyTorch
|
| 23 |
+
- **Task**: Instance Segmentation / Object Detection
|
| 24 |
+
- **License**: GPL-2.0
|
| 25 |
|
|
|
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
## Usage
|
| 29 |
|
| 30 |
+
```python
|
| 31 |
+
import torch
|
| 32 |
+
from mmdet.apis import init_detector
|
| 33 |
|
| 34 |
+
# Load model
|
| 35 |
+
config_file = 'configs/detector_FAST.py'
|
| 36 |
+
checkpoint_file = 'models/hrnet_epoch_36.pth'
|
| 37 |
+
model = init_detector(config_file, checkpoint_file, device='cuda:0')
|
| 38 |
```
|
| 39 |
|
| 40 |
+
## Files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
|
|
|
| 43 |
|
|
|
|
|
|
|
|
|
|
| 44 |
|
|
|
|
| 45 |
|
| 46 |
+
| File | Description |
|
| 47 |
+
|------|-------------|
|
| 48 |
+
| `models/hrnet_epoch_36.pth` | Model weights (Mask R-CNN with HRNet backbone) |
|
| 49 |
+
| `configs/detector_FAST.py` | Configuration for FAST telescope data |
|
| 50 |
+
| `configs/detector_SKA.py` | Configuration for SKA telescope data |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
## Citation
|
| 53 |
|
| 54 |
```bibtex
|
| 55 |
@article{zhang2026frtsearch,
|
| 56 |
+
title={FRTSearch: Unified Detection and Parameter Inference of Fast Radio Transients using Instance Segmentation},
|
| 57 |
+
author={Zhang, Bin and Wang, Yabiao and Xie, Xiaoyao et al.},
|
| 58 |
+
year={2026},
|
| 59 |
}
|
| 60 |
```
|
| 61 |
|
| 62 |
+
## Links
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
+
- **GitHub**: https://github.com/BinZhang109/FRTSearch
|
| 65 |
+
- **Paper**: https://doi.org/10.57760/sciencedb.Fastro.00038
|
| 66 |
+
- **Dataset**: [CRAFTS-FRT](https://doi.org/10.57760/sciencedb.Fastro.00038)
|
| 67 |
|
| 68 |
+
## License
|
| 69 |
|
|
|
|
| 70 |
|
| 71 |
+
This model is licensed under GPL-2.0. See [LICENSE](LICENSE) for details.
|
|
|
|
|
|