ONNX
English
dhvazquez commited on
Commit
bf96bdd
·
verified ·
1 Parent(s): 8445820

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -3
README.md CHANGED
@@ -1,3 +1,42 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ datasets:
4
+ - dhvazquez/mtg_synthetic_cards_semantic_segmentation
5
+ language:
6
+ - en
7
+ ---
8
+ # Magic The Gatering Image Semantic Segmentation model.
9
+
10
+ ## Model Details
11
+ - Architecture: lraspp_mobilenet_v3_large
12
+ - Input Size: 320x240
13
+ - Number of Classes: 2
14
+ - Classes: Background (0), Card (1)
15
+
16
+ ## Model Files
17
+ - `card_segmentation.onnx`: ONNX format for cross-platform deployment
18
+ - `card_segmentation.pt`: TorchScript format for PyTorch deployment
19
+ - `card_segmentation_state_dict.pth`: PyTorch state dict for training/fine-tuning
20
+
21
+ ## Input/Output
22
+ - Input: RGB image tensor of shape (1, 3, 320, 240)
23
+ - Input normalization: mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]
24
+ - Output: Segmentation logits of shape (1, 2, 320, 240)
25
+
26
+ ## Usage
27
+ See `inference_example.py` for example usage.
28
+
29
+ ## Requirements
30
+ - PyTorch >= 1.9.0
31
+ - torchvision >= 0.10.0
32
+ - onnxruntime (for ONNX inference)
33
+ - opencv-python
34
+ - numpy
35
+ - Pillow
36
+
37
+ ## Aditional Information
38
+
39
+ [Demo](https://huggingface.co/spaces/dhvazquez/mtg_semantic_segmentation)
40
+ [Dataset](https://huggingface.co/datasets/dhvazquez/mtg_synthetic_cards_semantic_segmentation)
41
+ [Source Code](https://github.com/diegovazquez/mtg_card_image_segmentation)
42
+