not existing input file ?

#1
by edgarriba - opened
Kornia AI org

File "app.py", line 8, in inference
img_1: Tensor = K.io.load_image(str(file_1), K.io.ImageLoadType.RGB32)
File "/home/user/.local/lib/python3.8/site-packages/kornia/io/io.py", line 67, in load_image
KORNIA_CHECK(os.path.isfile(path_file), f"Invalid file: {path_file}")
File "/home/user/.local/lib/python3.8/site-packages/kornia/testing/init.py", line 252, in KORNIA_CHECK
raise Exception(f"{condition} not true.\n{msg}")
Exception: False not true.
Invalid file: <tempfile._TemporaryFileWrapper object at 0x7f34bd005e80>

Kornia AI org

Hi @edgarriba ,

Can you add this library?

from kornia.core import Tensor

Can you fix this line?

img_2 = img_2[None]  # 1xCxHxW / fp32 / [0, 1]

Thank you for the corrections.

Kornia AI org

sent -- let's see :)

kadirnar changed discussion status to closed

Sign up or log in to comment