ilkerzgi commited on
Commit
b199f37
ยท
verified ยท
1 Parent(s): dd1d1d4

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,14 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ examples/armored_car_input.png filter=lfs diff=lfs merge=lfs -text
37
+ examples/armored_car_output.png filter=lfs diff=lfs merge=lfs -text
38
+ examples/biplane_input.png filter=lfs diff=lfs merge=lfs -text
39
+ examples/biplane_output.png filter=lfs diff=lfs merge=lfs -text
40
+ examples/jet_fighter_input.png filter=lfs diff=lfs merge=lfs -text
41
+ examples/jet_fighter_output.png filter=lfs diff=lfs merge=lfs -text
42
+ examples/sports_car_input.png filter=lfs diff=lfs merge=lfs -text
43
+ examples/sports_car_output.png filter=lfs diff=lfs merge=lfs -text
44
+ images/banner.png filter=lfs diff=lfs merge=lfs -text
45
+ images/example_input.png filter=lfs diff=lfs merge=lfs -text
46
+ images/example_output.png filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,219 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - flux
7
+ - flux-2-klein
8
+ - flux-lora
9
+ - lora
10
+ - sprite-sheet
11
+ - game-asset
12
+ - 2x2-grid
13
+ - multi-view
14
+ - isometric
15
+ - top-down
16
+ - side-view
17
+ - image-to-image
18
+ - fal-ai
19
+ pipeline_tag: image-to-image
20
+ widget:
21
+ - src: images/example_input.png
22
+ output:
23
+ url: images/example_output.png
24
+ parameters:
25
+ lora_scale: 1.1
26
+ ---
27
+
28
+ <div align="center">
29
+
30
+ # ๐ŸŽฎ Flux 2ร—2 Sprite Sheet LoRA
31
+
32
+ ### Transform any object into a **2ร—2 multi-view sprite sheet** with consistent style
33
+
34
+ [![Try on fal.ai](https://img.shields.io/badge/๐Ÿš€_Try_it_Live-fal.ai-FF6B35?style=for-the-badge)](https://fal.ai/models/fal-ai/flux-2-klein/4b/base/edit/lora?share=528658ce-ed9c-46be-8e2b-815fbc4d14a6)
35
+ [![License](https://img.shields.io/badge/License-Apache_2.0-green?style=for-the-badge)](https://opensource.org/licenses/Apache-2.0)
36
+
37
+ <img src="images/banner.png" alt="Sprite Sheet LoRA Banner" width="100%">
38
+
39
+ </div>
40
+
41
+ ---
42
+
43
+ ## ๐ŸŽฏ What does this model do?
44
+
45
+ This LoRA transforms **any single object image** into a professional **2ร—2 sprite sheet** with 4 different camera angles:
46
+
47
+ ```
48
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
49
+ โ”‚ ISOMETRIC โ†˜ โ”‚ ISOMETRIC โ†™ โ”‚
50
+ โ”‚ Front-right view โ”‚ Front-left view โ”‚
51
+ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
52
+ โ”‚ SIDE VIEW โ† โ”‚ TOP-DOWN โ†‘ โ”‚
53
+ โ”‚ Profile from left โ”‚ Bird's eye view โ”‚
54
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
55
+ ```
56
+
57
+ Perfect for **game developers**, **asset creators**, and **3D artists** who need consistent multi-view references.
58
+
59
+ ---
60
+
61
+ ## ๐Ÿ–ผ๏ธ Examples
62
+
63
+ <table>
64
+ <tr>
65
+ <th>Input</th>
66
+ <th>Output (2ร—2 Sprite Sheet)</th>
67
+ </tr>
68
+ <tr>
69
+ <td><img src="examples/jet_fighter_input.png" width="300"></td>
70
+ <td><img src="examples/jet_fighter_output.png" width="300"></td>
71
+ </tr>
72
+ <tr>
73
+ <td><img src="examples/biplane_input.png" width="300"></td>
74
+ <td><img src="examples/biplane_output.png" width="300"></td>
75
+ </tr>
76
+ <tr>
77
+ <td><img src="examples/sports_car_input.png" width="300"></td>
78
+ <td><img src="examples/sports_car_output.png" width="300"></td>
79
+ </tr>
80
+ <tr>
81
+ <td><img src="examples/armored_car_input.png" width="300"></td>
82
+ <td><img src="examples/armored_car_output.png" width="300"></td>
83
+ </tr>
84
+ </table>
85
+
86
+ ---
87
+
88
+ ## ๐Ÿš€ Quick Start
89
+
90
+ ### Prompt
91
+
92
+ ```
93
+ 2x2 sprite sheet
94
+ ```
95
+
96
+ ---
97
+
98
+ ## ๐Ÿ’ป Usage
99
+
100
+ ### Try it Live on fal.ai
101
+
102
+ โ–ถ๏ธ **[Open Playground](https://fal.ai/models/fal-ai/flux-2-klein/4b/base/edit/lora?share=528658ce-ed9c-46be-8e2b-815fbc4d14a6)**
103
+
104
+ ### With fal.ai SDK
105
+
106
+ ```python
107
+ import fal_client
108
+
109
+ def on_queue_update(update):
110
+ if isinstance(update, fal_client.InProgress):
111
+ for log in update.logs:
112
+ print(log["message"])
113
+
114
+ result = fal_client.subscribe(
115
+ "fal-ai/flux-2-klein/4b/base/edit/lora",
116
+ arguments={
117
+ "prompt": "Fill the green spaces according to the image",
118
+ "model_name": None,
119
+ "loras": [{
120
+ "path": "https://huggingface.co/ilkerzgi/flux-spritesheet-lora/resolve/main/flux-spritesheet-lora.safetensors",
121
+ "scale": 1.1
122
+ }],
123
+ "embeddings": [],
124
+ "image_urls": ["https://your-image-url.png"]
125
+ },
126
+ with_logs=True,
127
+ on_queue_update=on_queue_update,
128
+ )
129
+ print(result)
130
+ ```
131
+
132
+ ---
133
+
134
+ ## ๐Ÿ“ Output Layout
135
+
136
+ The model produces a **2ร—2 grid** with these specific views:
137
+
138
+ | Position | View Type | Direction |
139
+ |----------|-----------|-----------|
140
+ | **Top-Left** | Isometric 3/4 | Object faces bottom-right โ†˜ |
141
+ | **Top-Right** | Isometric 3/4 | Object faces bottom-left โ†™ |
142
+ | **Bottom-Left** | Side Profile | Object faces left โ† |
143
+ | **Bottom-Right** | Top-Down | Object faces up โ†‘ |
144
+
145
+ > All 4 views maintain the same art style, colors, and proportions.
146
+
147
+ ---
148
+
149
+ ## ๐ŸŽจ About the Red Background
150
+
151
+ The output uses a **consistent red background** by design. This solid color background:
152
+ - Improves style consistency across all 4 views
153
+ - Makes it easy to remove the background for game integration
154
+ - Ensures clean edges for sprite extraction
155
+
156
+ ---
157
+
158
+ ## ๐Ÿ“ฆ Model Files
159
+
160
+ | File | Use Case |
161
+ |------|----------|
162
+ | `flux-spritesheet-lora.safetensors` | fal.ai / Diffusers |
163
+
164
+ ---
165
+
166
+ ## ๐ŸŽ“ Training Details
167
+
168
+ <details>
169
+ <summary>Click to expand</summary>
170
+
171
+ ### Dataset
172
+ - **Size**: 48 curated sprite sheet pairs (from 120 generated, manually validated)
173
+ - **Content**: Diverse vehicle and object categories including:
174
+ - **Aircraft**: jet fighters, helicopters, biplanes, cargo planes, drones, zeppelins
175
+ - **Military Vehicles**: tanks, APCs, artillery, humvees, missile launchers
176
+ - **Civilian Vehicles**: sports cars, motorcycles, trucks, buses, bicycles
177
+ - **Construction Equipment**: excavators, bulldozers, cranes, forklifts
178
+ - **Trains**: locomotives, bullet trains, freight trains, trams
179
+ - **Ships & Boats**: battleships, submarines, yachts, speedboats, kayaks
180
+ - **Space & Sci-Fi**: rockets, space shuttles, mechs, hover vehicles, UFOs
181
+ - **Style**: Game-ready 2D assets with red background for consistency
182
+ - **Validation**: AI-validated for correct view orientations, then manually curated
183
+
184
+ ### Training
185
+ - **Base Model**: FLUX.2-Klein 4B
186
+ - **Platform**: [fal.ai](https://fal.ai)
187
+ - **Method**: LoRA training
188
+
189
+ </details>
190
+
191
+ ---
192
+
193
+ ## ๐ŸŽฎ Use Cases
194
+
195
+ - **Game Development**: Generate sprite sheets for 2D/isometric games
196
+ - **Asset Creation**: Quick multi-view references for 3D modeling
197
+
198
+ ---
199
+
200
+ ## โš ๏ธ Limitations
201
+
202
+ - Output background is solid red (by design, for consistency)
203
+
204
+ ---
205
+
206
+ ## ๐Ÿ“„ License
207
+
208
+ [Apache 2.0](https://opensource.org/licenses/Apache-2.0)
209
+
210
+ ---
211
+
212
+ <div align="center">
213
+
214
+ ### Created by [@ilkerzgi](https://huggingface.co/ilkerzgi) โ€ข Trained with [fal.ai](https://fal.ai)
215
+
216
+
217
+ [![Try on fal.ai](https://img.shields.io/badge/๐Ÿš€_Try_it_Live-fal.ai-FF6B35?style=for-the-badge)](https://fal.ai/models/fal-ai/flux-2-klein/4b/base/edit/lora?share=528658ce-ed9c-46be-8e2b-815fbc4d14a6)
218
+
219
+ </div>
examples/armored_car_input.png ADDED

Git LFS Details

  • SHA256: b776704ca9f2046b6cfe115fbbb1cd4a66ea66b2bb2a2b55410f1fe491b98642
  • Pointer size: 132 Bytes
  • Size of remote file: 1.86 MB
examples/armored_car_output.png ADDED

Git LFS Details

  • SHA256: 649a144112b1047854f812c20d0af83e3a6e45016d3cc3cc97681c6e46bb2909
  • Pointer size: 132 Bytes
  • Size of remote file: 6.24 MB
examples/biplane_input.png ADDED

Git LFS Details

  • SHA256: 0c3b6593e8365f1c0af28bdf63b44e8940dde98cf924522f467bbfb385ee5fb2
  • Pointer size: 132 Bytes
  • Size of remote file: 1.96 MB
examples/biplane_output.png ADDED

Git LFS Details

  • SHA256: d7b20f30f6e3662fa7b77c5248d3fb9f65b96ec608fa0345eebb8149e57557cb
  • Pointer size: 132 Bytes
  • Size of remote file: 5.58 MB
examples/jet_fighter_input.png ADDED

Git LFS Details

  • SHA256: 87e6f43ebba87342958ca2f4269c8981a0ef6cb68f00bd757c81c2843681f189
  • Pointer size: 132 Bytes
  • Size of remote file: 1.22 MB
examples/jet_fighter_output.png ADDED

Git LFS Details

  • SHA256: 95b47a505e7a5b05e372b19f810dce810e28193ca7c87dfcd417cb8ca4294fd1
  • Pointer size: 132 Bytes
  • Size of remote file: 5.71 MB
examples/sports_car_input.png ADDED

Git LFS Details

  • SHA256: 7a5f15e486b8db6dfc3fadacbda2d5bbe392fe86a7e2ff9513a1586d9cf7f670
  • Pointer size: 131 Bytes
  • Size of remote file: 995 kB
examples/sports_car_output.png ADDED

Git LFS Details

  • SHA256: bb7183fefe7ddbc5d84ec293216e801afa494a429daec1f6c99908f958981ed9
  • Pointer size: 132 Bytes
  • Size of remote file: 1.1 MB
flux-spritesheet-lora.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8aff1fc288755bfc99d91c9d31313062a0d5a0e2935afc3b87edcc431a45da5a
3
+ size 76039072
images/banner.png ADDED

Git LFS Details

  • SHA256: bb7183fefe7ddbc5d84ec293216e801afa494a429daec1f6c99908f958981ed9
  • Pointer size: 132 Bytes
  • Size of remote file: 1.1 MB
images/example_input.png ADDED

Git LFS Details

  • SHA256: 7a5f15e486b8db6dfc3fadacbda2d5bbe392fe86a7e2ff9513a1586d9cf7f670
  • Pointer size: 131 Bytes
  • Size of remote file: 995 kB
images/example_output.png ADDED

Git LFS Details

  • SHA256: bb7183fefe7ddbc5d84ec293216e801afa494a429daec1f6c99908f958981ed9
  • Pointer size: 132 Bytes
  • Size of remote file: 1.1 MB