Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import spaces
|
2 |
import sys
|
3 |
import time
|
4 |
import os
|
@@ -33,15 +33,15 @@ unet3d_condition_model_forward_copy = UNet3DConditionModel.forward
|
|
33 |
UNet3DConditionModel.forward = unet3d_condition_model_forward
|
34 |
|
35 |
|
36 |
-
model_id = "cerspense/zeroscope_v2_576w"
|
37 |
-
model_path = model_id
|
38 |
-
pipe = DiffusionPipeline.from_pretrained(model_path, torch_dtype=torch.float16)
|
39 |
-
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
40 |
-
pipe.to("cuda")
|
41 |
|
42 |
MAX_KEYS = 10
|
43 |
|
44 |
-
|
45 |
def core(bundle):
|
46 |
generator = torch.Generator().manual_seed(int(bundle["seed"]))
|
47 |
result = pipe(
|
@@ -225,12 +225,18 @@ with gr.Blocks(
|
|
225 |
<a href="https://hits.seeyoufarm.com"><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fhuggingface.co%2Fspaces%2Fhohonu-vicml%2FTrailblazer&count_bg=%23FF3232&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false"></a>
|
226 |
"""
|
227 |
with gr.Row():
|
228 |
-
gr.
|
229 |
-
|
230 |
-
gr.
|
231 |
-
|
232 |
-
|
233 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
|
235 |
description = """
|
236 |
<p>
|
|
|
1 |
+
#import spaces
|
2 |
import sys
|
3 |
import time
|
4 |
import os
|
|
|
33 |
UNet3DConditionModel.forward = unet3d_condition_model_forward
|
34 |
|
35 |
|
36 |
+
# model_id = "cerspense/zeroscope_v2_576w"
|
37 |
+
# model_path = model_id
|
38 |
+
# pipe = DiffusionPipeline.from_pretrained(model_path, torch_dtype=torch.float16)
|
39 |
+
# pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
40 |
+
# pipe.to("cuda")
|
41 |
|
42 |
MAX_KEYS = 10
|
43 |
|
44 |
+
#@spaces.GPU(duration=120)
|
45 |
def core(bundle):
|
46 |
generator = torch.Generator().manual_seed(int(bundle["seed"]))
|
47 |
result = pipe(
|
|
|
225 |
<a href="https://hits.seeyoufarm.com"><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fhuggingface.co%2Fspaces%2Fhohonu-vicml%2FTrailblazer&count_bg=%23FF3232&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false"></a>
|
226 |
"""
|
227 |
with gr.Row():
|
228 |
+
with gr.Column(scale=1):
|
229 |
+
pass
|
230 |
+
with gr.Column(scale=4):
|
231 |
+
with gr.Row():
|
232 |
+
gr.HTML("""<a href="https://arxiv.org/abs/2401.00896"><img src="https://img.shields.io/badge/cs.CV-Paper-b31b1b?logo=arxiv&logoColor=red"></a>""")
|
233 |
+
gr.HTML("""<a href="https://hohonu-vicml.github.io/Trailblazer.Page/"><img src="https://img.shields.io/badge/TrailBlazer-Website-green?logo=googlechrome&logoColor=green"></a>""")
|
234 |
+
gr.HTML("""<a href="https://github.com/hohonu-vicml/Trailblazer"><img src="https://img.shields.io/badge/Github-Code-green?logo=github&logoColor=black"></a>""")
|
235 |
+
gr.HTML("""<a href="https://www.youtube.com/watch?v=kEN-32wN-xQ"><img src="https://img.shields.io/badge/YouTube-Project-c4302b?logo=youtube&logoColor=red"></a>""")
|
236 |
+
gr.HTML("""<a href="https://www.youtube.com/watch?v=P-PSkS7sNco"><img src="https://img.shields.io/badge/YouTube-Result-c4302b?logo=youtube&logoColor=red"></a>""")
|
237 |
+
gr.HTML("""<a href="https://hits.seeyoufarm.com"><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fhuggingface.co%2Fspaces%2Fhohonu-vicml%2FTrailblazer&count_bg=%23FF3232&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false"></a>""")
|
238 |
+
with gr.Column(scale=1):
|
239 |
+
pass
|
240 |
|
241 |
description = """
|
242 |
<p>
|