Spaces:
Running on Zero
Running on Zero
Upload demo/real_world_pipeline.py with huggingface_hub
Browse files
demo/real_world_pipeline.py
CHANGED
|
@@ -358,7 +358,10 @@ def run_real_world_pipeline(
|
|
| 358 |
run_name: str = DEFAULT_RUN_NAME,
|
| 359 |
) -> dict:
|
| 360 |
if not torch.cuda.is_available():
|
| 361 |
-
raise RuntimeError(
|
|
|
|
|
|
|
|
|
|
| 362 |
|
| 363 |
image_path = Path(image_path)
|
| 364 |
if not image_path.exists():
|
|
|
|
| 358 |
run_name: str = DEFAULT_RUN_NAME,
|
| 359 |
) -> dict:
|
| 360 |
if not torch.cuda.is_available():
|
| 361 |
+
raise RuntimeError(
|
| 362 |
+
"CUDA GPU is required for the unified SynLayers real-world pipeline. "
|
| 363 |
+
"On Hugging Face Spaces, assign GPU hardware such as A100 and rebuild the Space."
|
| 364 |
+
)
|
| 365 |
|
| 366 |
image_path = Path(image_path)
|
| 367 |
if not image_path.exists():
|