Skip to content

导入包错误但代码可以运行什么原因 #47

Description

@zhang1363691920

您好,我无法克隆仓库,出现
$ git clone --recurse-submodules git@github.com:Bobholamovic/CDLab.git
Cloning into 'CDLab'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
所以我是直接下载的仓库,发现没有core下面的那些.py文件,所以自己从仓库复制了一份到core下,代码是正常运行,但是from utils.data_utils.misc import (
to_array, to_pseudo_color,
quantize_8bit as quantize
)
from utils.utils import HookHelper
from utils.metrics import (Meter, Precision, Recall, Accuracy, F1Score)包的导入提示飘红,我去检查utils文件夹有__init__.py,虽然可以跑但是感觉不对劲,不带劲。。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions