JinHyeong99 commited on
Commit
a36cae8
·
1 Parent(s): 3763dfd
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -16,6 +16,7 @@ def create_color_map(num_classes):
16
 
17
  def segment_image(image):
18
  # 이미지 처리
 
19
  inputs = feature_extractor(images=image, return_tensors="pt")
20
  with torch.no_grad():
21
  outputs = model(**inputs)
 
16
 
17
  def segment_image(image):
18
  # 이미지 처리
19
+ image = image.resize(512,512)
20
  inputs = feature_extractor(images=image, return_tensors="pt")
21
  with torch.no_grad():
22
  outputs = model(**inputs)