Spaces:
Runtime error
Runtime error
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def get_masked_img(img, w, h):
|
|
| 64 |
|
| 65 |
def get_inpainted_img(img, mask0, mask1, mask2):
|
| 66 |
lama_config = "third_party/lama/configs/prediction/default.yaml"
|
| 67 |
-
lama_ckpt = "pretrained_models/big-lama"
|
| 68 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 69 |
out = []
|
| 70 |
for mask in [mask0, mask1, mask2]:
|
|
@@ -158,5 +158,5 @@ with gr.Blocks() as demo:
|
|
| 158 |
|
| 159 |
|
| 160 |
if __name__ == "__main__":
|
| 161 |
-
demo.launch(
|
| 162 |
|
|
|
|
| 64 |
|
| 65 |
def get_inpainted_img(img, mask0, mask1, mask2):
|
| 66 |
lama_config = "third_party/lama/configs/prediction/default.yaml"
|
| 67 |
+
# lama_ckpt = "pretrained_models/big-lama"
|
| 68 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 69 |
out = []
|
| 70 |
for mask in [mask0, mask1, mask2]:
|
|
|
|
| 158 |
|
| 159 |
|
| 160 |
if __name__ == "__main__":
|
| 161 |
+
demo.launch()
|
| 162 |
|