Your Name
commited on
Commit
·
4cb2ea8
1
Parent(s):
b548b11
- pyproject.toml +1 -1
- src/pipeline.py +3 -3
- src/scheduler_config.json +1 -1
pyproject.toml
CHANGED
@@ -32,7 +32,7 @@ dependencies = [
|
|
32 |
[tool.edge-maxxing]
|
33 |
models = [
|
34 |
"stablediffusionapi/newdream-sdxl-20",
|
35 |
-
"
|
36 |
]
|
37 |
|
38 |
[tool.uv.sources]
|
|
|
32 |
[tool.edge-maxxing]
|
33 |
models = [
|
34 |
"stablediffusionapi/newdream-sdxl-20",
|
35 |
+
"Givemeaname123/39_cached_2"
|
36 |
]
|
37 |
|
38 |
[tool.uv.sources]
|
src/pipeline.py
CHANGED
@@ -28,13 +28,13 @@ def load_pipeline(pipeline=None) -> StableDiffusionXLPipeline:
|
|
28 |
pipeline.scheduler = SchedulerWrapper(DDIMScheduler.from_config(pipeline.scheduler.config))
|
29 |
|
30 |
pipeline = compile_pipe(pipeline)
|
31 |
-
load_pipe(pipeline, dir="/home/sandbox/.cache/huggingface/hub/models--
|
32 |
|
33 |
for __ in range(1):
|
34 |
-
deepcache_output = pipeline(prompt="a
|
35 |
pipeline.scheduler.prepare_loss()
|
36 |
for __ in range(2):
|
37 |
-
pipeline(prompt="
|
38 |
return pipeline
|
39 |
|
40 |
def infer(request: TextToImageRequest, pipeline: StableDiffusionXLPipeline) -> Image:
|
|
|
28 |
pipeline.scheduler = SchedulerWrapper(DDIMScheduler.from_config(pipeline.scheduler.config))
|
29 |
|
30 |
pipeline = compile_pipe(pipeline)
|
31 |
+
load_pipe(pipeline, dir="/home/sandbox/.cache/huggingface/hub/models--Givemeaname123--39_cached_2/snapshots/21a696440479d33151d796c2e035b83180b22ee2")
|
32 |
|
33 |
for __ in range(1):
|
34 |
+
deepcache_output = pipeline(prompt="a beautiful girl", output_type="pil", num_inference_steps=15)
|
35 |
pipeline.scheduler.prepare_loss()
|
36 |
for __ in range(2):
|
37 |
+
pipeline(prompt="there are four beautiful girls", output_type="pil", num_inference_steps=15)
|
38 |
return pipeline
|
39 |
|
40 |
def infer(request: TextToImageRequest, pipeline: StableDiffusionXLPipeline) -> Image:
|
src/scheduler_config.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
{
|
2 |
-
"_by": "
|
3 |
}
|
|
|
1 |
{
|
2 |
+
"_by": "noname"
|
3 |
}
|