dd
Browse files
app.py
CHANGED
@@ -27,6 +27,8 @@ def greet(url):
|
|
27 |
predicted_semantic_map = processor.post_process_semantic_segmentation(outputs, target_sizes=[image.size[::-1]])[0]
|
28 |
# we refer to the demo notebooks for visualization (see "Resources" section in the Mask2Former docs)
|
29 |
|
|
|
|
|
30 |
url = "http://www.apparelnews.co.kr/upfiles/manage/202302/5d5f694177b26fc86e5db623bf7ae4b7.jpg"
|
31 |
#greet(url)
|
32 |
|
|
|
27 |
predicted_semantic_map = processor.post_process_semantic_segmentation(outputs, target_sizes=[image.size[::-1]])[0]
|
28 |
# we refer to the demo notebooks for visualization (see "Resources" section in the Mask2Former docs)
|
29 |
|
30 |
+
return predicted_semantic_map
|
31 |
+
|
32 |
url = "http://www.apparelnews.co.kr/upfiles/manage/202302/5d5f694177b26fc86e5db623bf7ae4b7.jpg"
|
33 |
#greet(url)
|
34 |
|