Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 17, 2024. It is now read-only.
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

error Importing a model from Open Neural Network in vgg.py file #257

Open
@MoonSunBeen

Description

Hello I have problem building CNTK environment

I've checked
download pytorch
download torchvision
environment path

my environment is window10

(py36) C:\Git\ELL\mytest\testcntk>python test.py
Traceback (most recent call last):
File "test.py", line 6, in <module>
import vgg
File "C:\Git\ELL\mytest\testcntk\vgg.py", line 3, in <module>
from .utils import load_state_dict_from_url
ImportError: attempted relative import with no known parent package

The error message is above in miniconda3 prompt.

How can I fix problem from .utils import load_state_dict_from_url?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /