TorchLight
commited on
Commit
•
fc3d3e7
1
Parent(s):
a229cde
update drafts model
Browse files- README.md +51 -2
- BinaryModel-TFNVer.h5 → cent_resnet18.pth +2 -2
- cent_resnet50.pth +3 -0
- class_resnet18.pth +3 -0
- class_resnet50.pth +3 -0
README.md
CHANGED
@@ -3,20 +3,69 @@ license: mit
|
|
3 |
tags:
|
4 |
- Astronomy
|
5 |
- Classification
|
|
|
6 |
---
|
7 |
|
8 |
<div align="center">
|
9 |
|
10 |
<h1 style="font-size:40px;font-weight:bold">DRAFTS</h1>
|
11 |
|
12 |
-
_✨ Deep learning-based RAdio Fast Transient Search pipeline
|
13 |
|
|
|
14 |
</div>
|
15 |
|
16 |
## <div align="center">Description</div>
|
17 |
|
18 |
Here is the model repository for the Deep learning-based RAdio Fast Transient Search pipeline ([DRAFTS](https://github.com/SukiYume/DRAFTS)).
|
19 |
|
20 |
-
Currently, we have uploaded the TensorFlow version of the binary classification model for the DRAFTS pipeline.
|
21 |
We invite you to stay tuned for updates on the remaining components and different versions of the models.
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
tags:
|
4 |
- Astronomy
|
5 |
- Classification
|
6 |
+
- Object Detection
|
7 |
---
|
8 |
|
9 |
<div align="center">
|
10 |
|
11 |
<h1 style="font-size:40px;font-weight:bold">DRAFTS</h1>
|
12 |
|
13 |
+
_✨ Deep learning-based RAdio Fast Transient Search pipeline✨_
|
14 |
|
15 |
+
<img src="https://counter.seku.su/cmoe?name=APOD&theme=r34" /><br>
|
16 |
</div>
|
17 |
|
18 |
## <div align="center">Description</div>
|
19 |
|
20 |
Here is the model repository for the Deep learning-based RAdio Fast Transient Search pipeline ([DRAFTS](https://github.com/SukiYume/DRAFTS)).
|
21 |
|
|
|
22 |
We invite you to stay tuned for updates on the remaining components and different versions of the models.
|
23 |
|
24 |
+
## <div align="center">Usage</div>
|
25 |
+
|
26 |
+
There are four `.pth` files in this repository.
|
27 |
+
|
28 |
+
### Object Detection
|
29 |
+
|
30 |
+
The files starting with `cent` are the trained model checkpoints for the object detection models in the [DRAFTS](https://github.com/SukiYume/DRAFTS) project.
|
31 |
+
|
32 |
+
To load the object detection model
|
33 |
+
|
34 |
+
```python
|
35 |
+
import torch
|
36 |
+
from centernet_model import centernet
|
37 |
+
|
38 |
+
base_model = 'resnet18' # 'resnet50'
|
39 |
+
model = centernet(model_name=base_model)
|
40 |
+
model.load_state_dict(torch.load('cent_{}.pth'.format(base_model)))
|
41 |
+
model.eval()
|
42 |
+
```
|
43 |
+
|
44 |
+
### Binary Classification
|
45 |
+
|
46 |
+
The files starting with `class` are the trained model checkpoints for the classification models in the [DRAFTS](https://github.com/SukiYume/DRAFTS) project.
|
47 |
+
|
48 |
+
To load the classification detection model
|
49 |
+
|
50 |
+
```python
|
51 |
+
import torch
|
52 |
+
from binary_model import BinaryNet
|
53 |
+
|
54 |
+
base_model = 'resnet18' # 'resnet50'
|
55 |
+
model = BinaryNet(base_model, num_classes=2)
|
56 |
+
model.load_state_dict(torch.load('class_{}.pth'.format(base_model)))
|
57 |
+
model.eval()
|
58 |
+
```
|
59 |
+
|
60 |
+
|
61 |
+
## <div align="center">Contributing</div>
|
62 |
+
|
63 |
+
We welcome contributions to the DRAFTS project! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request on our [GitHub repository](https://github.com/SukiYume/DRAFTS).
|
64 |
+
|
65 |
+
|
66 |
+
## <div align="center">Contact</div>
|
67 |
+
For any questions or inquiries, please contact us at [email protected] or [email protected]
|
68 |
+
|
69 |
+
<div align="center">
|
70 |
+
✨ Thank you for using DRAFTS! ✨
|
71 |
+
</div>
|
BinaryModel-TFNVer.h5 → cent_resnet18.pth
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:85c97ce654222410ff1f581e80302ebddfe3479f65bcb03a867068c9806d650f
|
3 |
+
size 75519014
|
cent_resnet50.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:510f5b6b3049567178d4aa7c22ec9d37d378f165ee540b02b82e1cc58a6b100d
|
3 |
+
size 153397676
|
class_resnet18.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2c9c6b4b990596bd07ddfb5527c21cd689247d5026b2815bd1b6ce5294e66cc6
|
3 |
+
size 44766392
|
class_resnet50.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5b75c14256fc1909dca7ecea2f4e2c3af05eff400d4d615c5249b90e39325acc
|
3 |
+
size 94347198
|