Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import pipeline
|
2 |
+
generator = pipeline("mask-generation", device = 0, points_per_batch = 256)
|
3 |
+
image_url = "https://huggingface.co/ybelkada/segment-anything/resolve/main/assets/car.png"
|
4 |
+
outputs = generator(image_url, points_per_batch = 256)
|
5 |
+
|