mart9992 commited on
Commit
0893e31
1 Parent(s): 157c221
Files changed (11) hide show
  1. .gitignore +1 -2
  2. GroundedSegmentAnything +1 -0
  3. hallo.png +0 -0
  4. handler.py +1 -0
  5. ok.py +1 -0
  6. sport.jpg +0 -0
  7. sport.png +0 -0
  8. sport1.jpg +0 -0
  9. sport2.jpg +0 -0
  10. sport5.jpg +0 -0
  11. test_it.py +4 -2
.gitignore CHANGED
@@ -1,2 +1 @@
1
- .othervenv
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("verrueckt.jpg")
78
- get_mask_replicate(verrueckt_pil, "person", replicate_api_key="r8_GTeyENFqfOXFAI0COiGlB2RkhqEzqS64XBuIk")
 
 
 
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)