Image Classification
DeepForest
Safetensors
remote-sensing
aerial-imagery
forest
tree-mortality
ecology
model_hub_mixin
pytorch_model_hub_mixin
Instructions to use weecology/cropmodel-deadtrees with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- DeepForest
How to use weecology/cropmodel-deadtrees with DeepForest:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download config.json from weecology/cropmodel-deadtrees: direct link, hf CLI and curl.
- Browser
- Download file 3.13 kB
-
https://huggingface.co/weecology/cropmodel-deadtrees/resolve/refs%2Fpr%2F2/config.json
- Command line
-
hf download hf://weecology/cropmodel-deadtrees@refs/pr/2/config.json
-
curl -L -o config.json https://huggingface.co/weecology/cropmodel-deadtrees/resolve/refs%2Fpr%2F2/config.json
3.13 kB
| { | |
| "accelerator": "auto", | |
| "annotations_xml": null, | |
| "architecture": "retinanet", | |
| "batch_size": 1, | |
| "cropmodel": { | |
| "architecture": "resnet50", | |
| "balance_classes": false, | |
| "batch_size": 128, | |
| "expand": 0, | |
| "label_dict": { | |
| "Alive": 0, | |
| "Dead": 1 | |
| }, | |
| "lr": 0.0001, | |
| "normalize": null, | |
| "num_workers": 8, | |
| "resize": [ | |
| 224, | |
| 224 | |
| ], | |
| "resize_interpolation": "bilinear", | |
| "scheduler": { | |
| "params": { | |
| "T_max": 10, | |
| "cooldown": 0, | |
| "eps": 1e-08, | |
| "eta_min": 1e-05, | |
| "factor": 0.5, | |
| "gamma": 0.1, | |
| "lr_lambda": "0.95 ** epoch", | |
| "milestones": [ | |
| 50, | |
| 100 | |
| ], | |
| "min_lr": 0.0, | |
| "mode": "min", | |
| "patience": 5, | |
| "step_size": 30, | |
| "threshold": 0.0001, | |
| "threshold_mode": "rel" | |
| }, | |
| "type": "ReduceLROnPlateau" | |
| } | |
| }, | |
| "detections_per_img": 300, | |
| "devices": "auto", | |
| "label_dict": null, | |
| "log_root": "./lightning_logs", | |
| "matmul_precision": "highest", | |
| "model": { | |
| "name": "weecology/deepforest-tree", | |
| "revision": "main" | |
| }, | |
| "nms_thresh": 0.05, | |
| "num_classes": null, | |
| "num_nodes": 1, | |
| "patch_overlap": 0.05, | |
| "patch_size": 400, | |
| "path_to_raster": null, | |
| "path_to_rgb": null, | |
| "point": { | |
| "backbone": "pvt_v2_b3", | |
| "count_cls_weight": 1.0, | |
| "density_l1_weight": 0.01, | |
| "density_sigma": 5.0, | |
| "distance_threshold": 10.0, | |
| "enforce_count": true, | |
| "losses": null, | |
| "mae_weight": 1.0, | |
| "nms_distance_thresh": 5.0, | |
| "norm_cood": false, | |
| "num_of_iter_in_ot": 100, | |
| "ot_weight": 0.1, | |
| "score_integration_radius": 5, | |
| "sinkhorn_reg": 1.0 | |
| }, | |
| "precision": "32-true", | |
| "predict": { | |
| "pin_memory": false | |
| }, | |
| "rgb_dir": null, | |
| "score_thresh": 0.1, | |
| "skip_empty": true, | |
| "strategy": "auto", | |
| "sync_batchnorm": false, | |
| "topk_candidates": 1000, | |
| "train": { | |
| "augmentations": [ | |
| { | |
| "HorizontalFlip": { | |
| "p": 0.5 | |
| } | |
| } | |
| ], | |
| "csv_file": null, | |
| "epochs": 1, | |
| "fast_dev_run": false, | |
| "lr": 0.001, | |
| "optimizer": { | |
| "betas": [ | |
| 0.9, | |
| 0.999 | |
| ], | |
| "momentum": 0.9, | |
| "type": "SGD", | |
| "weight_decay": 0.0 | |
| }, | |
| "preload_images": false, | |
| "root_dir": null, | |
| "scheduler": { | |
| "params": { | |
| "T_max": 10, | |
| "cooldown": 0, | |
| "eps": 1e-08, | |
| "eta_min": 1e-05, | |
| "factor": 0.1, | |
| "gamma": 0.1, | |
| "lr_lambda": "0.95 ** epoch", | |
| "milestones": [ | |
| 50, | |
| 100 | |
| ], | |
| "min_lr": 0.0, | |
| "mode": "min", | |
| "patience": 10, | |
| "step_size": 30, | |
| "threshold": 0.0001, | |
| "threshold_mode": "rel" | |
| }, | |
| "type": null | |
| }, | |
| "validate_coordinates": true | |
| }, | |
| "use_distributed_sampler": true, | |
| "validation": { | |
| "augmentations": [], | |
| "csv_file": null, | |
| "iou_threshold": 0.4, | |
| "lr_plateau_target": "val_loss", | |
| "preload_images": false, | |
| "root_dir": null, | |
| "size": null, | |
| "val_accuracy_interval": 20, | |
| "validate_coordinates": true | |
| }, | |
| "workers": 0 | |
| } |