Image Classification
timm
drhead commited on
Commit
ac391c7
1 Parent(s): 8cba915
Files changed (1) hide show
  1. JTP_PILOT/inference_gradio.py +1 -1
JTP_PILOT/inference_gradio.py CHANGED
@@ -137,7 +137,7 @@ sorted_tag_score = {}
137
 
138
  def run_classifier(image, threshold):
139
  global sorted_tag_score
140
- img = image.convert('RGB')
141
  tensor = transform(img).unsqueeze(0)
142
 
143
  if torch.cuda.is_available():
 
137
 
138
  def run_classifier(image, threshold):
139
  global sorted_tag_score
140
+ img = image.convert('RGBA')
141
  tensor = transform(img).unsqueeze(0)
142
 
143
  if torch.cuda.is_available():