0

I have installed kornia and imorting it like,

from kornia.color import *
import kornia.augmentation.functional as F_k
import kornia as K

but the second line is giving error

ModuleNotFoundError: No module named 'kornia.augmentation.functional'. 

Also, this is my directory structure.

directory

But I getting error

ModuleNotFoundError: No module named 'FewShot_models'

when I try to import from FewShot_models.manipulate import *. I am following a code from github and trying to implement that.

4

1 回答 1

1

kornia.augmentation.functional在0.5.4版本中被删除,大部分功能都可以通过kornia.augmentation.

关于第二个问题,您需要添加名为__init__.pyFewShot_models 目录的空文件。检查此答案以获取有关__init__.py.

于 2021-08-25T13:48:37.223 回答