Spaces:
Paused
Paused
Bobby commited on
Commit ·
a307a0c
1
Parent(s): c0c746e
removed inpainting
Browse files
app.py
CHANGED
|
@@ -101,11 +101,11 @@ if gr.NO_RELOAD:
|
|
| 101 |
torch_dtype=torch.float16,
|
| 102 |
).to("cuda")
|
| 103 |
|
| 104 |
-
print('loading inpainting pipe')
|
| 105 |
-
inpaint_pipe = StableDiffusionInpaintPipeline.from_pretrained(
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
).to("cuda")
|
| 109 |
|
| 110 |
print("loading preprocessor")
|
| 111 |
preprocessor = Preprocessor()
|
|
@@ -440,6 +440,7 @@ def process_image(
|
|
| 440 |
else:
|
| 441 |
prompt = str(get_prompt(prompt, a_prompt))
|
| 442 |
negative_prompt = str(n_prompt)
|
|
|
|
| 443 |
|
| 444 |
# Generate the initial room image
|
| 445 |
initial_result = pipe(
|
|
|
|
| 101 |
torch_dtype=torch.float16,
|
| 102 |
).to("cuda")
|
| 103 |
|
| 104 |
+
# print('loading inpainting pipe')
|
| 105 |
+
# inpaint_pipe = StableDiffusionInpaintPipeline.from_pretrained(
|
| 106 |
+
# "runwayml/stable-diffusion-inpainting",
|
| 107 |
+
# torch_dtype=torch.float16,
|
| 108 |
+
# ).to("cuda")
|
| 109 |
|
| 110 |
print("loading preprocessor")
|
| 111 |
preprocessor = Preprocessor()
|
|
|
|
| 440 |
else:
|
| 441 |
prompt = str(get_prompt(prompt, a_prompt))
|
| 442 |
negative_prompt = str(n_prompt)
|
| 443 |
+
print(prompt)
|
| 444 |
|
| 445 |
# Generate the initial room image
|
| 446 |
initial_result = pipe(
|