- .gitignore +1 -2
- GroundedSegmentAnything +1 -0
- hallo.png +0 -0
- handler.py +1 -0
- ok.py +1 -0
- sport.jpg +0 -0
- sport.png +0 -0
- sport1.jpg +0 -0
- sport2.jpg +0 -0
- sport5.jpg +0 -0
- test_it.py +4 -2
.gitignore
CHANGED
@@ -1,2 +1 @@
|
|
1 |
-
|
2 |
-
.myvenv
|
|
|
1 |
+
.*venv
|
|
GroundedSegmentAnything
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 60867e321e53dee005e6d5e8ee304ebd927dcb04
|
hallo.png
ADDED
handler.py
CHANGED
@@ -13,6 +13,7 @@ import pydash as _
|
|
13 |
import boto3
|
14 |
import time
|
15 |
import subprocess
|
|
|
16 |
|
17 |
S3_REGION = "fra1"
|
18 |
S3_ACCESS_ID = "0RN7BZXS59HYSBD3VB79"
|
|
|
13 |
import boto3
|
14 |
import time
|
15 |
import subprocess
|
16 |
+
from GroundedSegmentAnything import installation
|
17 |
|
18 |
S3_REGION = "fra1"
|
19 |
S3_ACCESS_ID = "0RN7BZXS59HYSBD3VB79"
|
ok.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
from GroundedSegmentAnything import installation
|
sport.jpg
ADDED
sport.png
ADDED
sport1.jpg
ADDED
sport2.jpg
ADDED
sport5.jpg
ADDED
test_it.py
CHANGED
@@ -74,5 +74,7 @@ def get_mask_replicate(input_pil, positive_prompt, expand_by=0, negative_prompt=
|
|
74 |
|
75 |
return output_image
|
76 |
|
77 |
-
verrueckt_pil = Image.open("
|
78 |
-
get_mask_replicate(verrueckt_pil, "
|
|
|
|
|
|
74 |
|
75 |
return output_image
|
76 |
|
77 |
+
verrueckt_pil = Image.open("sport.jpg")
|
78 |
+
x = get_mask_replicate(verrueckt_pil, "bra . blouse . skirt . dress", negative_prompt="face", expand_by=10, replicate_api_key="r8_GTeyENFqfOXFAI0COiGlB2RkhqEzqS64XBuIk")
|
79 |
+
x.save("hallo.png")
|
80 |
+
print(x)
|