8000 import error in inference pipeline notebook · Issue #319 · borisdayma/dalle-mini · GitHub
[go: up one dir, main page]

Skip to content

import error in inference pipeline notebook #319

Open

Description

@ranpin

hello, when i use the inference pipeline notebook given by the readme.md, i meet the following error. I didnot change anything but just run the codes one by one, how can i deal with the problem?

image

Activity

  1. WangTiantian139 commented on Jan 22, 2023

    @WangTiantian139

    The file structure of the lib transformers has changed in recent updates, so the python interpreter can not find the class to be imported named FlaxSampleOutput. I have fixed the error by changing the module transformers.generation_flax_utils into transformers.generation.flax_utils.

    - 33 from transformers.generation_flax_utils import FlaxSampleOutput
    + 33 from transformers.generation.flax_utils import FlaxSampleOutput

    You can find the file at %your_python_path%/lib/python3.9/site-packages/dalle_mini/model/modeling.py. Please replace %your_python_path% into the path in your environment.

  2. borisdayma commented on Jan 22, 2023

    @borisdayma
    Owner

    Thanks for flagging it.
    I had fixed in the repo but forgot to upload the updated version to pypi.
    Now it should work fine.

  3. sajeedmehrab commented on Feb 6, 2023

    @sajeedmehrab

    image

  4. borisdayma commented on Feb 8, 2023

    @borisdayma
    Owner

    This was a different issue that happened shortly after 😅
    Should be fixed. I pinned transformers version.

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

      0