Upload TFSegformerForSemanticSegmentation
Browse files- README.md +48 -0
- config.json +78 -0
- tf_model.h5 +3 -0
    	
        README.md
    ADDED
    
    | @@ -0,0 +1,48 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            license: other
         | 
| 3 | 
            +
            base_model: nvidia/segformer-b0-finetuned-ade-512-512
         | 
| 4 | 
            +
            tags:
         | 
| 5 | 
            +
            - generated_from_keras_callback
         | 
| 6 | 
            +
            model-index:
         | 
| 7 | 
            +
            - name: MS1_Segformer_MRI
         | 
| 8 | 
            +
              results: []
         | 
| 9 | 
            +
            ---
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            <!-- This model card has been generated automatically according to the information Keras had access to. You should
         | 
| 12 | 
            +
            probably proofread and complete it, then remove this comment. -->
         | 
| 13 | 
            +
             | 
| 14 | 
            +
            # MS1_Segformer_MRI
         | 
| 15 | 
            +
             | 
| 16 | 
            +
            This model is a fine-tuned version of [nvidia/segformer-b0-finetuned-ade-512-512](https://huggingface.co/nvidia/segformer-b0-finetuned-ade-512-512) on an unknown dataset.
         | 
| 17 | 
            +
            It achieves the following results on the evaluation set:
         | 
| 18 | 
            +
             | 
| 19 | 
            +
             | 
| 20 | 
            +
            ## Model description
         | 
| 21 | 
            +
             | 
| 22 | 
            +
            More information needed
         | 
| 23 | 
            +
             | 
| 24 | 
            +
            ## Intended uses & limitations
         | 
| 25 | 
            +
             | 
| 26 | 
            +
            More information needed
         | 
| 27 | 
            +
             | 
| 28 | 
            +
            ## Training and evaluation data
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            More information needed
         | 
| 31 | 
            +
             | 
| 32 | 
            +
            ## Training procedure
         | 
| 33 | 
            +
             | 
| 34 | 
            +
            ### Training hyperparameters
         | 
| 35 | 
            +
             | 
| 36 | 
            +
            The following hyperparameters were used during training:
         | 
| 37 | 
            +
            - optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': 0.001, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
         | 
| 38 | 
            +
            - training_precision: float32
         | 
| 39 | 
            +
             | 
| 40 | 
            +
            ### Training results
         | 
| 41 | 
            +
             | 
| 42 | 
            +
             | 
| 43 | 
            +
             | 
| 44 | 
            +
            ### Framework versions
         | 
| 45 | 
            +
             | 
| 46 | 
            +
            - Transformers 4.44.0
         | 
| 47 | 
            +
            - TensorFlow 2.17.0
         | 
| 48 | 
            +
            - Tokenizers 0.19.1
         | 
    	
        config.json
    ADDED
    
    | @@ -0,0 +1,78 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
              "_name_or_path": "nvidia/segformer-b0-finetuned-ade-512-512",
         | 
| 3 | 
            +
              "architectures": [
         | 
| 4 | 
            +
                "SegformerForSemanticSegmentation"
         | 
| 5 | 
            +
              ],
         | 
| 6 | 
            +
              "attention_probs_dropout_prob": 0.0,
         | 
| 7 | 
            +
              "classifier_dropout_prob": 0.1,
         | 
| 8 | 
            +
              "decoder_hidden_size": 256,
         | 
| 9 | 
            +
              "depths": [
         | 
| 10 | 
            +
                2,
         | 
| 11 | 
            +
                2,
         | 
| 12 | 
            +
                2,
         | 
| 13 | 
            +
                2
         | 
| 14 | 
            +
              ],
         | 
| 15 | 
            +
              "downsampling_rates": [
         | 
| 16 | 
            +
                1,
         | 
| 17 | 
            +
                4,
         | 
| 18 | 
            +
                8,
         | 
| 19 | 
            +
                16
         | 
| 20 | 
            +
              ],
         | 
| 21 | 
            +
              "drop_path_rate": 0.1,
         | 
| 22 | 
            +
              "hidden_act": "gelu",
         | 
| 23 | 
            +
              "hidden_dropout_prob": 0.0,
         | 
| 24 | 
            +
              "hidden_sizes": [
         | 
| 25 | 
            +
                32,
         | 
| 26 | 
            +
                64,
         | 
| 27 | 
            +
                160,
         | 
| 28 | 
            +
                256
         | 
| 29 | 
            +
              ],
         | 
| 30 | 
            +
              "id2label": {
         | 
| 31 | 
            +
                "0": "bg",
         | 
| 32 | 
            +
                "1": "tumor"
         | 
| 33 | 
            +
              },
         | 
| 34 | 
            +
              "image_size": 224,
         | 
| 35 | 
            +
              "initializer_range": 0.02,
         | 
| 36 | 
            +
              "label2id": {
         | 
| 37 | 
            +
                "bg": 0,
         | 
| 38 | 
            +
                "tumor": 1
         | 
| 39 | 
            +
              },
         | 
| 40 | 
            +
              "layer_norm_eps": 1e-06,
         | 
| 41 | 
            +
              "mlp_ratios": [
         | 
| 42 | 
            +
                4,
         | 
| 43 | 
            +
                4,
         | 
| 44 | 
            +
                4,
         | 
| 45 | 
            +
                4
         | 
| 46 | 
            +
              ],
         | 
| 47 | 
            +
              "model_type": "segformer",
         | 
| 48 | 
            +
              "num_attention_heads": [
         | 
| 49 | 
            +
                1,
         | 
| 50 | 
            +
                2,
         | 
| 51 | 
            +
                5,
         | 
| 52 | 
            +
                8
         | 
| 53 | 
            +
              ],
         | 
| 54 | 
            +
              "num_channels": 3,
         | 
| 55 | 
            +
              "num_encoder_blocks": 4,
         | 
| 56 | 
            +
              "patch_sizes": [
         | 
| 57 | 
            +
                7,
         | 
| 58 | 
            +
                3,
         | 
| 59 | 
            +
                3,
         | 
| 60 | 
            +
                3
         | 
| 61 | 
            +
              ],
         | 
| 62 | 
            +
              "reshape_last_stage": true,
         | 
| 63 | 
            +
              "semantic_loss_ignore_index": 255,
         | 
| 64 | 
            +
              "sr_ratios": [
         | 
| 65 | 
            +
                8,
         | 
| 66 | 
            +
                4,
         | 
| 67 | 
            +
                2,
         | 
| 68 | 
            +
                1
         | 
| 69 | 
            +
              ],
         | 
| 70 | 
            +
              "strides": [
         | 
| 71 | 
            +
                4,
         | 
| 72 | 
            +
                2,
         | 
| 73 | 
            +
                2,
         | 
| 74 | 
            +
                2
         | 
| 75 | 
            +
              ],
         | 
| 76 | 
            +
              "torch_dtype": "float32",
         | 
| 77 | 
            +
              "transformers_version": "4.44.0"
         | 
| 78 | 
            +
            }
         | 
    	
        tf_model.h5
    ADDED
    
    | @@ -0,0 +1,3 @@ | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            version https://git-lfs.github.com/spec/v1
         | 
| 2 | 
            +
            oid sha256:f96d2e339a8a9effe182ec14eae6b7211f45b869db315d4a789f29989e8506c4
         | 
| 3 | 
            +
            size 15133552
         | 
