TexR6 commited on
Commit
dd62dfe
1 Parent(s): b72342a

Image.ANTIALIAS changed to Image.Resampling.LANCZOS

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -106,7 +106,7 @@ def plot_weights(input_data, patch_weights):
106
  y = i // (224 // 16) * 16
107
  plot[:, y:y + 16, x:x + 16] *= patch_weights[i]
108
  attn_map_img = inv_transform(plot, normalize=False)
109
- attn_map_img = attn_map_img.resize((224, 224), Image.ANTIALIAS)
110
  return attn_map_img
111
 
112
  attention_maps = plot_attention(random_image, 5)
 
106
  y = i // (224 // 16) * 16
107
  plot[:, y:y + 16, x:x + 16] *= patch_weights[i]
108
  attn_map_img = inv_transform(plot, normalize=False)
109
+ attn_map_img = attn_map_img.resize((224, 224), Image.Resampling.LANCZOS)
110
  return attn_map_img
111
 
112
  attention_maps = plot_attention(random_image, 5)