Commit 1f11e3f
Version bump to 0.18.0 and cherry pick (#2002)
* Adding PaliGemma2 to KerasHub (#1998)
* Add PaliGemma2 (#96)
* Add PaliGemma2 arch
* Enable mixed precision check for PaliGemma
* Add conversion script
* Revert ImageConverter and reduce mem usage in the conversion script
* Remove `compute_output_spec`
* Fix `compute_output_shape` issue for keras 3.1
* Add model cards and update conversion script
* update presets
---------
Co-authored-by: divyashreepathihalli <[email protected]>
* Update pali_gemma_presets.py - remove mix presets
* Update pali_gemma_presets.py
* Update convert_pali_gemma2_checkpoints.py
---------
Co-authored-by: james77777778 <[email protected]>
* Version bump to 0.18.0
* Update pali_gemma_presets.py (#2003)
* Update pali_gemma_presets.py
* code reformat
* Adding PaliGemma2 to KerasHub (#1998)
* Add PaliGemma2 (#96)
* Add PaliGemma2 arch
* Enable mixed precision check for PaliGemma
* Add conversion script
* Revert ImageConverter and reduce mem usage in the conversion script
* Remove `compute_output_spec`
* Fix `compute_output_shape` issue for keras 3.1
* Add model cards and update conversion script
* update presets
---------
Co-authored-by: divyashreepathihalli <[email protected]>
* Update pali_gemma_presets.py - remove mix presets
* Update pali_gemma_presets.py
* Update convert_pali_gemma2_checkpoints.py
---------
Co-authored-by: james77777778 <[email protected]>
* Update pali_gemma_presets.py (#2003)
* Update pali_gemma_presets.py
* code reformat
---------
Co-authored-by: james77777778 <[email protected]>1 parent bdb7478 commit 1f11e3f
File tree
7 files changed
+851
-47
lines changed- keras_hub/src
- models/pali_gemma
- tools/checkpoint_conversion
7 files changed
+851
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
63 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
64 | 81 | | |
65 | | - | |
| 82 | + | |
66 | 83 | | |
| 84 | + | |
67 | 85 | | |
68 | 86 | | |
69 | 87 | | |
| |||
119 | 137 | | |
120 | 138 | | |
121 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
122 | 147 | | |
123 | 148 | | |
124 | 149 | | |
| |||
136 | 161 | | |
137 | 162 | | |
138 | 163 | | |
| 164 | + | |
139 | 165 | | |
140 | 166 | | |
141 | 167 | | |
| |||
155 | 181 | | |
156 | 182 | | |
157 | 183 | | |
| 184 | + | |
158 | 185 | | |
159 | 186 | | |
160 | 187 | | |
161 | | - | |
162 | 188 | | |
| 189 | + | |
163 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
164 | 197 | | |
165 | 198 | | |
166 | 199 | | |
| |||
173 | 206 | | |
174 | 207 | | |
175 | 208 | | |
176 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
177 | 212 | | |
178 | 213 | | |
179 | 214 | | |
| |||
219 | 254 | | |
220 | 255 | | |
221 | 256 | | |
222 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
223 | 266 | | |
224 | 267 | | |
225 | 268 | | |
| |||
243 | 286 | | |
244 | 287 | | |
245 | 288 | | |
246 | | - | |
247 | | - | |
248 | 289 | | |
249 | 290 | | |
250 | 291 | | |
| |||
253 | 294 | | |
254 | 295 | | |
255 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
256 | 306 | | |
257 | 307 | | |
258 | 308 | | |
Lines changed: 72 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
| |||
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
Lines changed: 21 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
34 | 47 | | |
35 | | - | |
| 48 | + | |
36 | 49 | | |
| 50 | + | |
37 | 51 | | |
38 | 52 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 53 | | |
62 | 54 | | |
63 | 55 | | |
| |||
83 | 75 | | |
84 | 76 | | |
85 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
86 | 81 | | |
87 | 82 | | |
88 | 83 | | |
| |||
94 | 89 | | |
95 | 90 | | |
96 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
97 | 95 | | |
98 | 96 | | |
99 | 97 | | |
| |||
0 commit comments