mirror of
https://www.modelscope.cn/shiertier/ComfyUI-segformer_b2_clothes.git
synced 2026-04-02 14:22:54 +08:00
'upload model'
This commit is contained in:
109
onnx/config.json
Normal file
109
onnx/config.json
Normal file
@ -0,0 +1,109 @@
|
||||
{
|
||||
"_name_or_path": "mattmdjaga/segformer_b2_clothes",
|
||||
"architectures": [
|
||||
"SegformerForSemanticSegmentation"
|
||||
],
|
||||
"attention_probs_dropout_prob": 0.0,
|
||||
"classifier_dropout_prob": 0.1,
|
||||
"decoder_hidden_size": 768,
|
||||
"depths": [
|
||||
3,
|
||||
4,
|
||||
6,
|
||||
3
|
||||
],
|
||||
"downsampling_rates": [
|
||||
1,
|
||||
4,
|
||||
8,
|
||||
16
|
||||
],
|
||||
"drop_path_rate": 0.1,
|
||||
"hidden_act": "gelu",
|
||||
"hidden_dropout_prob": 0.0,
|
||||
"hidden_sizes": [
|
||||
64,
|
||||
128,
|
||||
320,
|
||||
512
|
||||
],
|
||||
"id2label": {
|
||||
"0": "Background",
|
||||
"1": "Hat",
|
||||
"2": "Hair",
|
||||
"3": "Sunglasses",
|
||||
"4": "Upper-clothes",
|
||||
"5": "Skirt",
|
||||
"6": "Pants",
|
||||
"7": "Dress",
|
||||
"8": "Belt",
|
||||
"9": "Left-shoe",
|
||||
"10": "Right-shoe",
|
||||
"11": "Face",
|
||||
"12": "Left-leg",
|
||||
"13": "Right-leg",
|
||||
"14": "Left-arm",
|
||||
"15": "Right-arm",
|
||||
"16": "Bag",
|
||||
"17": "Scarf"
|
||||
},
|
||||
"image_size": 224,
|
||||
"initializer_range": 0.02,
|
||||
"label2id": {
|
||||
"Background": 0,
|
||||
"Bag": 16,
|
||||
"Belt": 8,
|
||||
"Dress": 7,
|
||||
"Face": 11,
|
||||
"Hair": 2,
|
||||
"Hat": 1,
|
||||
"Left-arm": 14,
|
||||
"Left-leg": 12,
|
||||
"Left-shoe": 9,
|
||||
"Pants": 6,
|
||||
"Right-arm": 15,
|
||||
"Right-leg": 13,
|
||||
"Right-shoe": 10,
|
||||
"Scarf": 17,
|
||||
"Skirt": 5,
|
||||
"Sunglasses": 3,
|
||||
"Upper-clothes": 4
|
||||
},
|
||||
"layer_norm_eps": 1e-06,
|
||||
"mlp_ratios": [
|
||||
4,
|
||||
4,
|
||||
4,
|
||||
4
|
||||
],
|
||||
"model_type": "segformer",
|
||||
"num_attention_heads": [
|
||||
1,
|
||||
2,
|
||||
5,
|
||||
8
|
||||
],
|
||||
"num_channels": 3,
|
||||
"num_encoder_blocks": 4,
|
||||
"patch_sizes": [
|
||||
7,
|
||||
3,
|
||||
3,
|
||||
3
|
||||
],
|
||||
"reshape_last_stage": true,
|
||||
"semantic_loss_ignore_index": 255,
|
||||
"sr_ratios": [
|
||||
8,
|
||||
4,
|
||||
2,
|
||||
1
|
||||
],
|
||||
"strides": [
|
||||
4,
|
||||
2,
|
||||
2,
|
||||
2
|
||||
],
|
||||
"transformers_version": "4.34.0"
|
||||
}
|
||||
3
onnx/model.onnx
Normal file
3
onnx/model.onnx
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a93a8dac171b5c1fcc53632a8bfc180bfd9759ea69a3e207451bb07f76add54f
|
||||
size 110039290
|
||||
24
onnx/preprocessor_config.json
Normal file
24
onnx/preprocessor_config.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"do_normalize": true,
|
||||
"do_reduce_labels": false,
|
||||
"do_rescale": true,
|
||||
"do_resize": true,
|
||||
"feature_extractor_type": "SegformerFeatureExtractor",
|
||||
"image_mean": [
|
||||
0.485,
|
||||
0.456,
|
||||
0.406
|
||||
],
|
||||
"image_processor_type": "SegformerFeatureExtractor",
|
||||
"image_std": [
|
||||
0.229,
|
||||
0.224,
|
||||
0.225
|
||||
],
|
||||
"resample": 2,
|
||||
"rescale_factor": 0.00392156862745098,
|
||||
"size": {
|
||||
"height": 512,
|
||||
"width": 512
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user