aixen commited on
Commit
dcbd77e
1 Parent(s): 27d660b

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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
+