Download config.json from y352184741/DualTopo: direct link, hf CLI and curl.
- Browser
- Download file 10.2 kB
-
https://huggingface.co/y352184741/DualTopo/resolve/main/config.json
- Command line
-
hf download hf://y352184741/DualTopo/config.json
-
curl -L -o config.json https://huggingface.co/y352184741/DualTopo/resolve/main/config.json
10.2 kB
| { | |
| "model": { | |
| "type": "DualTopo", | |
| "bev_h": 100, | |
| "bev_w": 200, | |
| "roi_size": [ | |
| 102.4, | |
| 51.2, | |
| 4.0 | |
| ], | |
| "img_backbone": { | |
| "type": "ResNet", | |
| "depth": 50, | |
| "num_stages": 4, | |
| "out_indices": [ | |
| 1, | |
| 2, | |
| 3 | |
| ], | |
| "frozen_stages": 1, | |
| "norm_cfg": { | |
| "type": "BN", | |
| "requires_grad": false | |
| }, | |
| "norm_eval": true, | |
| "style": "pytorch", | |
| "pretrained": false | |
| }, | |
| "img_neck": { | |
| "type": "FPN", | |
| "in_channels": [ | |
| 512, | |
| 1024, | |
| 2048 | |
| ], | |
| "out_channels": 256, | |
| "start_level": 0, | |
| "add_extra_convs": "on_output", | |
| "num_outs": 4, | |
| "relu_before_extra_convs": true | |
| }, | |
| "bev_constructor": { | |
| "type": "BEVFormerConstructer", | |
| "num_feature_levels": 4, | |
| "num_cams": 7, | |
| "embed_dims": 256, | |
| "rotate_prev_bev": true, | |
| "use_shift": true, | |
| "use_can_bus": true, | |
| "pc_range": [ | |
| -51.2, | |
| -25.6, | |
| -2.3, | |
| 51.2, | |
| 25.6, | |
| 1.7 | |
| ], | |
| "bev_h": 100, | |
| "bev_w": 200, | |
| "rotate_center": [ | |
| 50, | |
| 100 | |
| ], | |
| "encoder": { | |
| "type": "BEVFormerEncoder", | |
| "num_layers": 3, | |
| "pc_range": [ | |
| -51.2, | |
| -25.6, | |
| -2.3, | |
| 51.2, | |
| 25.6, | |
| 1.7 | |
| ], | |
| "num_points_in_pillar": 4, | |
| "return_intermediate": false, | |
| "transformerlayers": { | |
| "type": "BEVFormerLayer", | |
| "attn_cfgs": [ | |
| { | |
| "type": "TemporalSelfAttention", | |
| "embed_dims": 256, | |
| "num_levels": 1 | |
| }, | |
| { | |
| "type": "SpatialCrossAttention", | |
| "embed_dims": 256, | |
| "num_cams": 7, | |
| "pc_range": [ | |
| -51.2, | |
| -25.6, | |
| -2.3, | |
| 51.2, | |
| 25.6, | |
| 1.7 | |
| ], | |
| "deformable_attention": { | |
| "type": "MSDeformableAttention3D", | |
| "embed_dims": 256, | |
| "num_points": 8, | |
| "num_levels": 4 | |
| } | |
| } | |
| ], | |
| "ffn_cfgs": { | |
| "type": "FFN", | |
| "embed_dims": 256, | |
| "feedforward_channels": 512, | |
| "num_fcs": 2, | |
| "ffn_drop": 0.1, | |
| "act_cfg": { | |
| "type": "ReLU", | |
| "inplace": true | |
| } | |
| }, | |
| "operation_order": [ | |
| "self_attn", | |
| "norm", | |
| "cross_attn", | |
| "norm", | |
| "ffn", | |
| "norm" | |
| ] | |
| } | |
| }, | |
| "positional_encoding": { | |
| "type": "LearnedPositionalEncoding", | |
| "num_feats": 128, | |
| "row_num_embed": 100, | |
| "col_num_embed": 200 | |
| } | |
| }, | |
| "lane_head": { | |
| "type": "DualPathwayLaneHead", | |
| "roi_size": [ | |
| 102.4, | |
| 51.2, | |
| 4.0 | |
| ], | |
| "num_classes": 2, | |
| "num_points": 10, | |
| "num_lane_type_classes": 3, | |
| "in_channels": 256, | |
| "num_query": 200, | |
| "bev_h": 100, | |
| "bev_w": 200, | |
| "pc_range": [ | |
| -51.2, | |
| -25.6, | |
| -2.3, | |
| 51.2, | |
| 25.6, | |
| 1.7 | |
| ], | |
| "pts_dim": 3, | |
| "with_box_refine": true, | |
| "code_size": 90, | |
| "num_traj_modal": 3, | |
| "code_weights": [ | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 1.0 | |
| ], | |
| "dn_cfg": {}, | |
| "streaming_cfg": { | |
| "streaming": true, | |
| "batch_size": 2, | |
| "topk": 66, | |
| "topology_memory": true, | |
| "directed_graph_propagation": true, | |
| "stream_topology_loss": false | |
| }, | |
| "transformer": { | |
| "type": "DualPathwayTransformer", | |
| "embed_dims": 256, | |
| "points_num": 10, | |
| "pts_dim": 3, | |
| "decoder": { | |
| "type": "DualPathwayDecoder", | |
| "num_layers": 6, | |
| "return_intermediate": true, | |
| "prop_add_stage": 1, | |
| "pc_range": [ | |
| -51.2, | |
| -25.6, | |
| -2.3, | |
| 51.2, | |
| 25.6, | |
| 1.7 | |
| ], | |
| "pts_dim": 3, | |
| "transformerlayers": { | |
| "type": "CustomDetrTransformerDecoderLayer", | |
| "attn_cfgs": [ | |
| { | |
| "type": "MultiheadAttention", | |
| "embed_dims": 256, | |
| "num_heads": 8, | |
| "dropout": 0.1 | |
| }, | |
| { | |
| "type": "StreamLaneAttention", | |
| "embed_dims": 256, | |
| "num_heads": 8, | |
| "num_points": 32, | |
| "num_levels": 1 | |
| } | |
| ], | |
| "ffn_cfgs": { | |
| "type": "FFN", | |
| "embed_dims": 256, | |
| "feedforward_channels": 512, | |
| "num_fcs": 2, | |
| "ffn_drop": 0.1, | |
| "act_cfg": { | |
| "type": "ReLU", | |
| "inplace": true | |
| } | |
| }, | |
| "operation_order": [ | |
| "self_attn", | |
| "norm", | |
| "cross_attn", | |
| "norm", | |
| "ffn", | |
| "norm" | |
| ] | |
| } | |
| } | |
| }, | |
| "bev_world_model": { | |
| "type": "BEVWorldModel", | |
| "num_feature_levels": 4, | |
| "num_cams": 7, | |
| "embed_dims": 256, | |
| "rotate_prev_bev": true, | |
| "use_shift": true, | |
| "use_can_bus": true, | |
| "pc_range": [ | |
| -51.2, | |
| -25.6, | |
| -2.3, | |
| 51.2, | |
| 25.6, | |
| 1.7 | |
| ], | |
| "bev_h": 50, | |
| "bev_w": 100, | |
| "rotate_center": [ | |
| 25, | |
| 50 | |
| ], | |
| "encoder": { | |
| "type": "BEVWorldModelEncoder", | |
| "num_layers": 2, | |
| "pc_range": [ | |
| -51.2, | |
| -25.6, | |
| -2.3, | |
| 51.2, | |
| 25.6, | |
| 1.7 | |
| ], | |
| "num_points_in_pillar": 4, | |
| "return_intermediate": false, | |
| "transformerlayers": { | |
| "type": "BEVWorldModelLayer", | |
| "attn_cfgs": [ | |
| { | |
| "type": "TemporalSelfAttention", | |
| "embed_dims": 256, | |
| "num_levels": 1 | |
| } | |
| ], | |
| "ffn_cfgs": { | |
| "type": "FFN", | |
| "embed_dims": 256, | |
| "feedforward_channels": 2048, | |
| "num_fcs": 2, | |
| "ffn_drop": 0.1, | |
| "act_cfg": { | |
| "type": "ReLU", | |
| "inplace": true | |
| } | |
| }, | |
| "operation_order": [ | |
| "self_attn", | |
| "norm", | |
| "ffn", | |
| "norm" | |
| ] | |
| } | |
| }, | |
| "positional_encoding": { | |
| "type": "LearnedPositionalEncoding", | |
| "num_feats": 128, | |
| "row_num_embed": 100, | |
| "col_num_embed": 200 | |
| } | |
| }, | |
| "bbox_coder": { | |
| "type": "LaneSegmentPseudoCoder" | |
| } | |
| }, | |
| "lclc_head": { | |
| "type": "RelationshipHead", | |
| "in_channels_o1": 256, | |
| "in_channels_o2": 256, | |
| "shared_param": false | |
| }, | |
| "streaming_cfg": { | |
| "streaming_bev": true, | |
| "stream": true, | |
| "batch_size": 2, | |
| "fusion_cfg": { | |
| "type": "ConvGRU", | |
| "out_channels": 256 | |
| } | |
| } | |
| }, | |
| "data": { | |
| "data_root": "data/", | |
| "ann_file": "data/data_dict_subset_A_val_lanesegnet.pkl", | |
| "pipeline": [ | |
| { | |
| "type": "CustomLoadMultiViewImageFromFiles", | |
| "to_float32": true | |
| }, | |
| { | |
| "type": "CropFrontViewImageForAv2" | |
| }, | |
| { | |
| "type": "RandomScaleImageMultiViewImage", | |
| "scales": [ | |
| 0.5 | |
| ] | |
| }, | |
| { | |
| "type": "NormalizeMultiviewImage", | |
| "mean": [ | |
| 123.675, | |
| 116.28, | |
| 103.53 | |
| ], | |
| "std": [ | |
| 58.395, | |
| 57.12, | |
| 57.375 | |
| ], | |
| "to_rgb": true | |
| }, | |
| { | |
| "type": "PadMultiViewImageSame2Max", | |
| "size_divisor": 32 | |
| }, | |
| { | |
| "type": "CustomFormatBundle3DLane", | |
| "class_names": [ | |
| "lane_segment", | |
| "ped_crossing" | |
| ] | |
| }, | |
| { | |
| "type": "CustomCollect3D", | |
| "keys": [ | |
| "img" | |
| ] | |
| } | |
| ], | |
| "classes": [ | |
| "lane_segment", | |
| "ped_crossing" | |
| ], | |
| "modality": { | |
| "use_lidar": false, | |
| "use_camera": true, | |
| "use_radar": false, | |
| "use_map": false, | |
| "use_external": false | |
| }, | |
| "split": "val", | |
| "points_num": 10 | |
| } | |
| } | |