Download config.yml from digitalpresso/floorplan-dfine-spa: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/digitalpresso/floorplan-dfine-spa/resolve/main/config.yml
- Command line
-
hf download hf://digitalpresso/floorplan-dfine-spa/config.yml
-
curl -L -o config.yml https://huggingface.co/digitalpresso/floorplan-dfine-spa/resolve/main/config.yml
1.56 kB
| # D-FINE-M inference config for the SPA model (floorplan-global). Upstream D-FINE @ 956d170. | |
| task: detection | |
| model: DFINE | |
| criterion: DFINECriterion | |
| postprocessor: DFINEPostProcessor | |
| num_classes: 23 | |
| remap_mscoco_category: false | |
| eval_spatial_size: | |
| - 1920 | |
| - 1920 | |
| DFINE: | |
| backbone: HGNetv2 | |
| encoder: HybridEncoder | |
| decoder: DFINETransformer | |
| HGNetv2: | |
| pretrained: false | |
| local_model_dir: weight/hgnetv2/ | |
| name: B2 | |
| return_idx: | |
| - 1 | |
| - 2 | |
| - 3 | |
| freeze_at: -1 | |
| freeze_norm: false | |
| use_lab: true | |
| HybridEncoder: | |
| in_channels: | |
| - 384 | |
| - 768 | |
| - 1536 | |
| feat_strides: | |
| - 8 | |
| - 16 | |
| - 32 | |
| hidden_dim: 256 | |
| use_encoder_idx: | |
| - 2 | |
| num_encoder_layers: 1 | |
| nhead: 8 | |
| dim_feedforward: 1024 | |
| dropout: 0.0 | |
| enc_act: gelu | |
| expansion: 1.0 | |
| depth_mult: 0.67 | |
| act: silu | |
| DFINETransformer: | |
| feat_channels: | |
| - 256 | |
| - 256 | |
| - 256 | |
| feat_strides: | |
| - 8 | |
| - 16 | |
| - 32 | |
| hidden_dim: 256 | |
| num_levels: 3 | |
| num_layers: 4 | |
| eval_idx: -1 | |
| num_queries: 128 | |
| num_denoising: 100 | |
| label_noise_ratio: 0.5 | |
| box_noise_scale: 1.0 | |
| reg_max: 32 | |
| reg_scale: 4 | |
| layer_scale: 1 | |
| num_points: | |
| - 3 | |
| - 6 | |
| - 3 | |
| cross_attn_method: default | |
| query_select_method: default | |
| DFINEPostProcessor: | |
| num_top_queries: 128 | |
| DFINECriterion: | |
| weight_dict: | |
| loss_vfl: 1 | |
| loss_bbox: 5 | |
| loss_giou: 2 | |
| loss_fgl: 0.15 | |
| loss_ddf: 1.5 | |
| losses: | |
| - vfl | |
| - boxes | |
| - local | |
| alpha: 0.75 | |
| gamma: 2.0 | |
| reg_max: 32 | |
| matcher: | |
| type: HungarianMatcher | |
| weight_dict: | |
| cost_class: 2 | |
| cost_bbox: 5 | |
| cost_giou: 2 | |
| alpha: 0.25 | |
| gamma: 2.0 | |
| use_focal_loss: true | |