Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def blurr_object(image, object, blur_strength):
|
|
44 |
mask_array_three_channel_invert = 1-mask_array_three_channel
|
45 |
blur_image_reverse_mask = blur_image*mask_array_three_channel_invert
|
46 |
seg_box=[]
|
47 |
-
for i in range(object):
|
48 |
object_number = int(object.split('i')[0])
|
49 |
mask_array = np.asarray(pred[object_number]['mask'])/255
|
50 |
image_array = np.asarray(image)
|
|
|
44 |
mask_array_three_channel_invert = 1-mask_array_three_channel
|
45 |
blur_image_reverse_mask = blur_image*mask_array_three_channel_invert
|
46 |
seg_box=[]
|
47 |
+
for i in range(int(object)):
|
48 |
object_number = int(object.split('i')[0])
|
49 |
mask_array = np.asarray(pred[object_number]['mask'])/255
|
50 |
image_array = np.asarray(image)
|