wop commited on
Commit
e4137e8
Β·
verified Β·
1 Parent(s): 9eea41b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +37 -18
README.md CHANGED
@@ -12,9 +12,9 @@ pipeline_tag: text-to-image
12
  </div>
13
 
14
  <div style="background-color: #252525; padding: 1.5rem; border-radius: 12px; margin-bottom: 20px;">
15
- <h2 style="color: #ffffff; margin-top: 0;">πŸ–ΌοΈ Outputs</h2>
16
  <p style="color:#cccccc;">
17
- Generated samples from different prompt colors.
18
  </p>
19
 
20
  <table style="width: 100%; border-collapse: collapse; color: #cccccc; text-align: center;">
@@ -25,13 +25,22 @@ pipeline_tag: text-to-image
25
  </tr>
26
  <tr>
27
  <td style="padding: 10px;">
28
- <img src="out_red.png" style="width: 120px; image-rendering: pixelated; border-radius: 6px;" />
 
 
 
29
  </td>
30
  <td style="padding: 10px;">
31
- <img src="out_green.png" style="width: 120px; image-rendering: pixelated; border-radius: 6px;" />
 
 
 
32
  </td>
33
  <td style="padding: 10px;">
34
- <img src="out_blue.png" style="width: 120px; image-rendering: pixelated; border-radius: 6px;" />
 
 
 
35
  </td>
36
  </tr>
37
  <tr>
@@ -41,15 +50,25 @@ pipeline_tag: text-to-image
41
  </tr>
42
  <tr>
43
  <td style="padding: 10px;">
44
- <img src="out_white.png" style="width: 120px; image-rendering: pixelated; border-radius: 6px;" />
 
 
 
45
  </td>
46
  <td style="padding: 10px;">
47
- <img src="out_yellow.png" style="width: 120px; image-rendering: pixelated; border-radius: 6px;" />
 
 
 
48
  </td>
49
  <td style="padding: 10px;">
50
- <img src="out_dark.png" style="width: 120px; image-rendering: pixelated; border-radius: 6px;" />
 
 
 
51
  </td>
52
  </tr>
 
53
  </table>
54
  </div>
55
 
@@ -61,9 +80,9 @@ pipeline_tag: text-to-image
61
  </p>
62
 
63
  <ul style="color: #cccccc; line-height: 1.6;">
64
- <li><strong>R channel</strong> β†’ weight magnitude</li>
65
- <li><strong>B channel</strong> β†’ weight sign (β‰₯128 = positive)</li>
66
- <li><strong>G channel</strong> β†’ bias values</li>
67
  </ul>
68
 
69
  <p style="color: #cccccc;">
@@ -83,7 +102,7 @@ pipeline_tag: text-to-image
83
  model.png ← THE MODEL (64Γ—3200 px, ~284 KB)
84
  main.py ← inference
85
  train.py ← training
86
- model.py ← architecture (pixels β†’ weights β†’ forward pass)
87
  dataset/ ← training data
88
  cat.png
89
  cat.txt ← prompt: "a cat"
@@ -107,7 +126,7 @@ python main.py "a cat" --out cat_out.png --scale 8
107
  </pre>
108
 
109
  <p style="color:#cccccc;">
110
- <code>--scale 8</code> upscales 32Γ—32 β†’ 256Γ—256 using nearest-neighbour interpolation to preserve pixel structure.
111
  </p>
112
  </div>
113
 
@@ -116,11 +135,11 @@ python main.py "a cat" --out cat_out.png --scale 8
116
 
117
  <pre style="background:#1a1a1a; padding: 1rem; border-radius: 8px; color:#cccccc;">
118
  prompt string
119
- β†’ char-level embedding β†’ 32-dim vector
120
- β†’ W1 (64Γ—32) β†’ tanh
121
- β†’ W2 (64Γ—64) β†’ tanh
122
- β†’ W3 (3072Γ—64) β†’ sigmoid
123
- β†’ reshape β†’ 32Γ—32Γ—3 image
124
  </pre>
125
 
126
  <p style="color:#cccccc;">
 
12
  </div>
13
 
14
  <div style="background-color: #252525; padding: 1.5rem; border-radius: 12px; margin-bottom: 20px;">
15
+ <h2 style="color: #ffffff; margin-top: 0;">πŸ§ͺ Dataset vs Outputs</h2>
16
  <p style="color:#cccccc;">
17
+ Ground truth dataset images compared with generated outputs.
18
  </p>
19
 
20
  <table style="width: 100%; border-collapse: collapse; color: #cccccc; text-align: center;">
 
25
  </tr>
26
  <tr>
27
  <td style="padding: 10px;">
28
+ <div style="font-size: 0.8rem; color:#888;">dataset</div>
29
+ <img src="dataset/red.png" style="width: 110px; image-rendering: pixelated; border-radius: 6px;" />
30
+ <div style="font-size: 0.8rem; color:#888;">Model output</div>
31
+ <img src="out_red.png" style="width: 110px; image-rendering: pixelated; border-radius: 6px;" />
32
  </td>
33
  <td style="padding: 10px;">
34
+ <div style="font-size: 0.8rem; color:#888;">dataset</div>
35
+ <img src="dataset/green.png" style="width: 110px; image-rendering: pixelated; border-radius: 6px;" />
36
+ <div style="font-size: 0.8rem; color:#888;">Model output</div>
37
+ <img src="out_green.png" style="width: 110px; image-rendering: pixelated; border-radius: 6px;" />
38
  </td>
39
  <td style="padding: 10px;">
40
+ <div style="font-size: 0.8rem; color:#888;">dataset</div>
41
+ <img src="dataset/blue.png" style="width: 110px; image-rendering: pixelated; border-radius: 6px;" />
42
+ <div style="font-size: 0.8rem; color:#888;">Model output</div>
43
+ <img src="out_blue.png" style="width: 110px; image-rendering: pixelated; border-radius: 6px;" />
44
  </td>
45
  </tr>
46
  <tr>
 
50
  </tr>
51
  <tr>
52
  <td style="padding: 10px;">
53
+ <div style="font-size: 0.8rem; color:#888;">dataset</div>
54
+ <img src="dataset/white.png" style="width: 110px; image-rendering: pixelated; border-radius: 6px;" />
55
+ <div style="font-size: 0.8rem; color:#888;">Model output</div>
56
+ <img src="out_white.png" style="width: 110px; image-rendering: pixelated; border-radius: 6px;" />
57
  </td>
58
  <td style="padding: 10px;">
59
+ <div style="font-size: 0.8rem; color:#888;">dataset</div>
60
+ <img src="dataset/yellow.png" style="width: 110px; image-rendering: pixelated; border-radius: 6px;" />
61
+ <div style="font-size: 0.8rem; color:#888;">Model output</div>
62
+ <img src="out_yellow.png" style="width: 110px; image-rendering: pixelated; border-radius: 6px;" />
63
  </td>
64
  <td style="padding: 10px;">
65
+ <div style="font-size: 0.8rem; color:#888;">dataset</div>
66
+ <img src="dataset/dark.png" style="width: 110px; image-rendering: pixelated; border-radius: 6px;" />
67
+ <div style="font-size: 0.8rem; color:#888;">Model output</div>
68
+ <img src="out_dark.png" style="width: 110px; image-rendering: pixelated; border-radius: 6px;" />
69
  </td>
70
  </tr>
71
+
72
  </table>
73
  </div>
74
 
 
80
  </p>
81
 
82
  <ul style="color: #cccccc; line-height: 1.6;">
83
+ <li><strong>R channel</strong> Model output weight magnitude</li>
84
+ <li><strong>B channel</strong> Model output weight sign (β‰₯128 = positive)</li>
85
+ <li><strong>G channel</strong> Model output bias values</li>
86
  </ul>
87
 
88
  <p style="color: #cccccc;">
 
102
  model.png ← THE MODEL (64Γ—3200 px, ~284 KB)
103
  main.py ← inference
104
  train.py ← training
105
+ model.py ← architecture (pixels Model output weights Model output forward pass)
106
  dataset/ ← training data
107
  cat.png
108
  cat.txt ← prompt: "a cat"
 
126
  </pre>
127
 
128
  <p style="color:#cccccc;">
129
+ <code>--scale 8</code> upscales 32Γ—32 Model output 256Γ—256 using nearest-neighbour interpolation to preserve pixel structure.
130
  </p>
131
  </div>
132
 
 
135
 
136
  <pre style="background:#1a1a1a; padding: 1rem; border-radius: 8px; color:#cccccc;">
137
  prompt string
138
+ Model output char-level embedding Model output 32-dim vector
139
+ Model output W1 (64Γ—32) Model output tanh
140
+ Model output W2 (64Γ—64) Model output tanh
141
+ Model output W3 (3072Γ—64) Model output sigmoid
142
+ Model output reshape Model output 32Γ—32Γ—3 image
143
  </pre>
144
 
145
  <p style="color:#cccccc;">