Skip to content

Commit

Permalink
Minor correction.
Browse files Browse the repository at this point in the history
  • Loading branch information
popovaan committed Oct 11, 2024
1 parent e68992d commit 8d4e26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python_tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,5 +436,5 @@ def get_image_by_link(link):
image = Image.open(requests.get(link, stream=True).raw)
if image.mode != 'RGB':
image = image.convert('RGB')
image_data = np.array(image.getdata(), dtype=np.byte).reshape(1, 3, image.size[1], image.size[0])
image_data = np.array((np.array(image.getdata()) - 128).astype(np.byte)).reshape(1, 3, image.size[1], image.size[0])
return Tensor(image_data)

0 comments on commit 8d4e26c

Please sign in to comment.