Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
gradio_demo/gradio_demo.py
CHANGED
|
@@ -72,7 +72,7 @@ from dataset import get_pose
|
|
| 72 |
from CN_encoder import CN_encoder
|
| 73 |
from pipeline_zero1to3 import Zero1to3StableDiffusionPipeline
|
| 74 |
|
| 75 |
-
pretrained_model_name_or_path = "kxic/EscherNet_demo"
|
| 76 |
resolution = 256
|
| 77 |
h,w = resolution,resolution
|
| 78 |
guidance_scale = 3.0
|
|
@@ -102,7 +102,7 @@ pipeline = Zero1to3StableDiffusionPipeline.from_pretrained(
|
|
| 102 |
feature_extractor=None,
|
| 103 |
torch_dtype=weight_dtype,
|
| 104 |
)
|
| 105 |
-
pipeline.image_encoder = image_encoder
|
| 106 |
pipeline = pipeline.to(device)
|
| 107 |
pipeline.set_progress_bar_config(disable=False)
|
| 108 |
|
|
|
|
| 72 |
from CN_encoder import CN_encoder
|
| 73 |
from pipeline_zero1to3 import Zero1to3StableDiffusionPipeline
|
| 74 |
|
| 75 |
+
pretrained_model_name_or_path = "kxic/EscherNet_demo"
|
| 76 |
resolution = 256
|
| 77 |
h,w = resolution,resolution
|
| 78 |
guidance_scale = 3.0
|
|
|
|
| 102 |
feature_extractor=None,
|
| 103 |
torch_dtype=weight_dtype,
|
| 104 |
)
|
| 105 |
+
pipeline.image_encoder = image_encoder.to(weight_dtype)
|
| 106 |
pipeline = pipeline.to(device)
|
| 107 |
pipeline.set_progress_bar_config(disable=False)
|
| 108 |
|