Rhydham commited on
Commit
e12e8e5
·
verified ·
1 Parent(s): 36eaea2

Converted the model to safetensors

Browse files

Hello Mentors,

I have been working on converting the model to the SafeTensors format and have set num_classes = 2. I would appreciate any guidance or clarification on whether this approach is correct.
Thank you for your time and support.

README.md CHANGED
@@ -1,23 +1,23 @@
1
- ---
2
- license: apache-2.0
3
- tags:
4
- - deepforest
5
- ---
6
-
7
- A model to be used in conjunction with the DeepForest python package for airborne machine learning. This is a Alive/Dead tree crown classifier. Tree crowns are first detected seperately, see https://huggingface.co/weecology/deepforest-tree. Then the locations are passed to this model to classify alive/dead status.
8
-
9
- For more information see https://deepforest.readthedocs.io/en/latest/prebuilt.html#alive-dead-trees, as well as the general crop classifier docs https://deepforest.readthedocs.io/en/latest/CropModels.html
10
-
11
- To provide a simple filter for trees that appear dead in the RGB data we collected 6,342 image crops from the prediction landscape, as well as other NEON sites, and hand annotated them as either alive or dead. We finetuned a resnet-50 pre-trained on ImageNet to classify alive or dead trees before passing them to the species classification model. The model was trained with an ADAM optimizer with a learning rate of 0.001 and batch size of 128 for 40 epochs, and was evaluated on a randomly held out of 10% of the crops. The evaluation accuracy of the alive-dead model was 95.8% (Table S1).
12
-
13
- Table S1 Confusion matrix for the Alive/Dead model in Weinstein et al. 2023
14
-
15
- | Predicted | Alive | Dead |
16
- |-----------------|-------|------|
17
- | Observed | 527 | 9 |
18
- | | 10 | 89 |
19
-
20
- * Note *, due to the smaller training sizes, the confidence scores are overfit and not smooth. We do not recommend using the confidence scores from this model until it is trained on more diverse data.
21
-
22
-
23
- Citation: Weinstein, Ben G., et al. "Capturing long‐tailed individual tree diversity using an airborne imaging and a multi‐temporal hierarchical model." Remote Sensing in Ecology and Conservation 9.5 (2023): 656-670.
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - deepforest
5
+ ---
6
+
7
+ A model to be used in conjunction with the DeepForest python package for airborne machine learning. This is a Alive/Dead tree crown classifier. Tree crowns are first detected seperately, see https://huggingface.co/weecology/deepforest-tree. Then the locations are passed to this model to classify alive/dead status.
8
+
9
+ For more information see https://deepforest.readthedocs.io/en/latest/prebuilt.html#alive-dead-trees, as well as the general crop classifier docs https://deepforest.readthedocs.io/en/latest/CropModels.html
10
+
11
+ To provide a simple filter for trees that appear dead in the RGB data we collected 6,342 image crops from the prediction landscape, as well as other NEON sites, and hand annotated them as either alive or dead. We finetuned a resnet-50 pre-trained on ImageNet to classify alive or dead trees before passing them to the species classification model. The model was trained with an ADAM optimizer with a learning rate of 0.001 and batch size of 128 for 40 epochs, and was evaluated on a randomly held out of 10% of the crops. The evaluation accuracy of the alive-dead model was 95.8% (Table S1).
12
+
13
+ Table S1 Confusion matrix for the Alive/Dead model in Weinstein et al. 2023
14
+
15
+ | Predicted | Alive | Dead |
16
+ |-----------------|-------|------|
17
+ | Observed | 527 | 9 |
18
+ | | 10 | 89 |
19
+
20
+ * Note *, due to the smaller training sizes, the confidence scores are overfit and not smooth. We do not recommend using the confidence scores from this model until it is trained on more diverse data.
21
+
22
+
23
+ Citation: Weinstein, Ben G., et al. "Capturing long‐tailed individual tree diversity using an airborne imaging and a multi‐temporal hierarchical model." Remote Sensing in Ecology and Conservation 9.5 (2023): 656-670.
cropmodel-deadtrees.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bbcbf73561f6bc5d0a17ea6a2081feed2d1304e87602d8c502d9a5c4bd85576
3
+ size 16
cropmodel-deadtrees_metadata.json ADDED
The diff for this file is too large to render. See raw diff
 
cropmodel-deadtrees_metadata_summary.json ADDED
The diff for this file is too large to render. See raw diff