Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module transformers has no attribute CLIPTokenizer #5

Open
gongqiwen03 opened this issue Dec 29, 2024 · 3 comments
Open

Comments

@gongqiwen03
Copy link

Thank you very much for your work.!!!
I really want to succeed in this project, but I'm sorry that there was a mistake. You can take a look at it for me
error

@JihoChoi
Copy link
Collaborator

Based on the screenshot you provided, it seems like the error occurs when calling the PartCLIPSegProcessor class at partclipseg.py#L36-L38.

However, it's difficult to determine the exact error from the screenshot alone.
One possibility could be that a different version of the transformers module is installed or that the tokenizers version is mismatched. (pip install tokenizers==0.11.1)
Could you please provide more details about your environment?

It would be helpful if you could share the output of the following commands:

  • python --version
  • pip freeze

@gongqiwen03
Copy link
Author

Thank you very much for getting back to me.This is the detailed situation:
error1
error2
error3

@JihoChoi
Copy link
Collaborator

Thanks for your response.
However, based on the screenshot you provided, it seems that the environment might differ from what we suggested in the README.
For example, I noticed the presence of modules like networkx and ninja, which suggests that it might be integrated with another environment.

In such cases, it’s difficult to pinpoint exactly which module might be causing the dependency error.
As mentioned in the installation section of our README, we recommend using an isolated environment, such as conda or docker, to avoid these kinds of conflicts.
Additionally, please ensure that you are using only the project setup script we provided in the README within the isolated environment to prevent any unintended issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants