hbyecoding commited on
Commit
3cb213d
·
1 Parent(s): 9ad29e9

Initial commit

Browse files
Files changed (2) hide show
  1. README.md +74 -0
  2. model.pth +3 -0
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ tags:
4
+ - medical-image-segmentation
5
+ - pytorch
6
+ - u-rwkv
7
+ datasets:
8
+ - rwkv
9
+ metrics:
10
+ - dice
11
+ model-index:
12
+ - name: u-rwkv-polyp
13
+ results:
14
+ - task:
15
+ type: image-segmentation
16
+ name: Medical Image Segmentation
17
+ dataset:
18
+ type: rwkv
19
+ name: RWKV
20
+ metrics:
21
+ - type: dice
22
+ value: 0.7887
23
+ ---
24
+
25
+ # u-rwkv-polyp
26
+
27
+ This model is part of the U-RWKV family of medical image segmentation models. It combines the power of RWKV (Receptance Weighted Key Value) attention mechanism with U-Net architecture for efficient and accurate medical image segmentation.
28
+
29
+ ## Model description
30
+
31
+ U-RWKV model trained on Polyp dataset for polyp segmentation
32
+
33
+ ### Architecture
34
+
35
+ - Base architecture: U-Net with RWKV attention
36
+ - Input channels: 3
37
+ - Output channels: 1
38
+ - Base channels: [16, 32, 128, 160, 256]
39
+ - Attention mechanism: RWKV (Receptance Weighted Key Value)
40
+ - Feature fusion: SE (Squeeze-and-Excitation)
41
+
42
+ ## Performance
43
+
44
+ - Dice score: 0.7887
45
+
46
+ ## Usage
47
+
48
+ ```python
49
+ import torch
50
+ from models.model import U_RWKV
51
+
52
+ # Load model
53
+ model = U_RWKV()
54
+ checkpoint = torch.load('model.pth')
55
+ model.load_state_dict(checkpoint['model_state_dict'])
56
+ model.eval()
57
+
58
+ # Inference
59
+ with torch.no_grad():
60
+ output = model(input_image)
61
+ ```
62
+
63
+ ## Training
64
+
65
+ The model was trained using:
66
+ - Loss functions: Dice Loss + BCE Loss
67
+ - Optimizer: AdamW
68
+ - Learning rate: 1e-4
69
+ - Batch size: 16
70
+ - Data augmentation: Random flip, rotation, scaling
71
+
72
+ ## License
73
+
74
+ This model is released under the MIT License.
model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a860cb9a0e971328f22a9121f05b020afb531dbf94f733aa3694d590c716fa45
3
+ size 12188655