Update app.py
Browse filesUpload pre-requirements.txt
Update requirements.txt
Update README.md
Update .gitattributes
- .gitattributes +1 -0
- README.md +19 -5
- app.py +2 -1
- pre-requirements.txt +1 -0
- requirements.txt +31 -4
.gitattributes
CHANGED
@@ -28,6 +28,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
28 |
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
*.tgz filter=lfs diff=lfs merge=lfs -text
|
|
|
31 |
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
|
|
28 |
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.ttf filter=lfs diff=lfs merge=lfs -text
|
32 |
*.wasm filter=lfs diff=lfs merge=lfs -text
|
33 |
*.xz filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,13 +1,27 @@
|
|
1 |
---
|
2 |
-
title: HexaGrid
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 5.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
short_description: Transform Your Images into Mesmerizing Hexagon Grids
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: HexaGrid Creator
|
3 |
+
emoji: 🐝
|
4 |
+
colorFrom: yellow
|
5 |
+
colorTo: purple
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 5.12.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
short_description: Transform Your Images into Mesmerizing Hexagon Grids
|
11 |
+
license: apache-2.0
|
12 |
+
tags:
|
13 |
+
- map maker
|
14 |
+
- tabletop
|
15 |
+
- hexagon
|
16 |
+
- text-to-image
|
17 |
+
- image-generation
|
18 |
+
- flux
|
19 |
+
- depth
|
20 |
+
- 3d
|
21 |
+
hf_oauth: true
|
22 |
+
fullWidth: true
|
23 |
+
thumbnail: >-
|
24 |
+
https://cdn-uploads.huggingface.co/production/uploads/6346595c9e5f0fe83fc60444/s0fQvcoiSBlH36AXpVwPi.png
|
25 |
---
|
26 |
|
27 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import random
|
|
|
4 |
|
5 |
# import spaces #[uncomment to use ZeroGPU]
|
6 |
from diffusers import DiffusionPipeline
|
@@ -21,7 +22,7 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
21 |
MAX_IMAGE_SIZE = 1024
|
22 |
|
23 |
|
24 |
-
|
25 |
def infer(
|
26 |
prompt,
|
27 |
negative_prompt,
|
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import random
|
4 |
+
import spaces
|
5 |
|
6 |
# import spaces #[uncomment to use ZeroGPU]
|
7 |
from diffusers import DiffusionPipeline
|
|
|
22 |
MAX_IMAGE_SIZE = 1024
|
23 |
|
24 |
|
25 |
+
@spaces.GPU(duration=128)
|
26 |
def infer(
|
27 |
prompt,
|
28 |
negative_prompt,
|
pre-requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
pip>=25.0
|
requirements.txt
CHANGED
@@ -1,6 +1,33 @@
|
|
1 |
accelerate
|
2 |
-
diffusers
|
3 |
invisible_watermark
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
accelerate
|
|
|
2 |
invisible_watermark
|
3 |
+
# Updated versions 2.4.0+cu118
|
4 |
+
torch==2.4.0 --index-url https://download.pytorch.org/whl/cu118
|
5 |
+
torchvision==0.19.0 --index-url https://download.pytorch.org/whl/cu118
|
6 |
+
torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu118
|
7 |
+
xformers==0.0.27.post2 --index-url https://download.pytorch.org/whl/cu118
|
8 |
+
|
9 |
+
# Other dependencies
|
10 |
+
Haishoku
|
11 |
+
pybind11>=2.12
|
12 |
+
huggingface_hub
|
13 |
+
# git+https://github.com/huggingface/[email protected]#egg=transformers
|
14 |
+
transformers==4.48.1
|
15 |
+
gradio==5.12.0
|
16 |
+
gradio[oauth]
|
17 |
+
pillow
|
18 |
+
numpy==1.26.4
|
19 |
+
requests
|
20 |
+
# git+https://github.com/huggingface/diffusers[torch]
|
21 |
+
diffusers[torch]==0.32.2
|
22 |
+
peft
|
23 |
+
opencv-python
|
24 |
+
open3d
|
25 |
+
protobuf
|
26 |
+
safetensors
|
27 |
+
sentencepiece
|
28 |
+
git+https://github.com/asomoza/image_gen_aux.git
|
29 |
+
# git+https://github.com/huggingface/optimum.git
|
30 |
+
# git+https://github.com/triton-lang/triton.git -not windows supported --disable in environment variable
|
31 |
+
tiktoken
|
32 |
+
pilmoji[requests]==2.0.4
|
33 |
+
emoji==2.2.0
|