Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
niujinshuchong committed Nov 7, 2022
1 parent 0d682b7 commit efc8cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inference_single_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def inference(args):
input_image = pil.open(image_path).convert('RGB')
extension = image_path.split('.')[-1]
original_width, original_height = input_image.size
input_image = input_image.resize((thisH, thisW), pil.LANCZOS)
input_image = input_image.resize((thisW, thisH), pil.LANCZOS)
input_image = transforms.ToTensor()(input_image).unsqueeze(0)

# PREDICTION
Expand Down

0 comments on commit efc8cdc

Please sign in to comment.