From 593afeacfaae95a23f7c55d27a30fada33fd8a0f Mon Sep 17 00:00:00 2001 From: Chris Sreesangkom Date: Thu, 18 Jul 2024 19:48:54 -0400 Subject: [PATCH 1/3] remove unused fg --- examples/remove_bg.py | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/remove_bg.py b/examples/remove_bg.py index cc1c61a..ace0849 100755 --- a/examples/remove_bg.py +++ b/examples/remove_bg.py @@ -16,7 +16,6 @@ substrate = Substrate(api_key=api_key, timeout=60 * 5) prompt = "by edward hopper, a red leather wing chair in an open room, pillars, amazing painting composition" image = GenerateImage(prompt=prompt, negative_prompt="photo realistic") -fg = RemoveBackground(image_uri=image.future.image_uri) mask = RemoveBackground( image_uri=image.future.image_uri, return_mask=True, From ae5a2fff128839d58b4a5e39857894f8fb776e99 Mon Sep 17 00:00:00 2001 From: Chris Sreesangkom Date: Fri, 19 Jul 2024 10:06:50 -0400 Subject: [PATCH 2/3] rename file --- examples/{remove_bg.py => remove_foreground.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename examples/{remove_bg.py => remove_foreground.py} (100%) diff --git a/examples/remove_bg.py b/examples/remove_foreground.py similarity index 100% rename from examples/remove_bg.py rename to examples/remove_foreground.py From 3da0e946dde86ade0fdda5b00797f3f764bcf3b1 Mon Sep 17 00:00:00 2001 From: Chris Sreesangkom Date: Fri, 19 Jul 2024 10:27:47 -0400 Subject: [PATCH 3/3] nit --- examples/remove_foreground.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/remove_foreground.py b/examples/remove_foreground.py index ace0849..bad529f 100755 --- a/examples/remove_foreground.py +++ b/examples/remove_foreground.py @@ -15,7 +15,7 @@ substrate = Substrate(api_key=api_key, timeout=60 * 5) prompt = "by edward hopper, a red leather wing chair in an open room, pillars, amazing painting composition" -image = GenerateImage(prompt=prompt, negative_prompt="photo realistic") +image = GenerateImage(prompt=prompt) mask = RemoveBackground( image_uri=image.future.image_uri, return_mask=True,