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

Auto-captioner error: module 'tensorflow' has no attribute 'Tensor' #78

Closed
Zyin055 opened this issue Mar 8, 2024 · 6 comments
Closed

Comments

@Zyin055
Copy link

Zyin055 commented Mar 8, 2024

Tried using the auto-captioner feature for the first time. Kept the default settings, and after it downloaded a bunch of models it shows this error in the GUI (nothing in the console). It wont let me copy/paste the whole error from GUI, so I typed the relevant parts here:

Loading THUDM/cogagent-vqa-hf...
A matching Triton is not available, some optimizations will not be enabled
Traceback (most recent call last):
...
... _backends.py line 408, in is_appropriate_type
return isinstance(tensor, (self.tf.Tensor.self.tf.Variable))
AttributeError:
module 'tensorflow' has no attribute 'Tensor'

I have an RTX 3060 12GB, Windows 10.

If I can't get this working, where is the download directory so I can delete the 34GB of models that were downloaded? edit: found the models at: C:\Users\<USER>\.cache\huggingface\hub\models--THUDM--cogagent-vqa-hf

@jhc13
Copy link
Owner

jhc13 commented Mar 8, 2024

Are you running a .exe file from releases, or did you install manually?

@Zyin055
Copy link
Author

Zyin055 commented Mar 8, 2024

I manually installed with a git clone and installed the requirements.txt file.

@jhc13
Copy link
Owner

jhc13 commented Mar 8, 2024

Please try installing the dependencies into a new separate virtual environment (if you haven't already), or deleting and recreating the virtual environment. Similar issues online suggest that this will fix the problem.

Alternatively, you can download and run the .exe file which does not require any installation.

@Zyin055
Copy link
Author

Zyin055 commented Mar 8, 2024

Windows 10 comes up with a virus detection when downloading taggui-v1.17.0-windows.7z and automatically deleted it.

@jhc13
Copy link
Owner

jhc13 commented Mar 8, 2024

It's a false positive caused by PyInstaller, so you can revert the deletion.

If you do not trust it, you can try reinstalling manually as I described.

@Zyin055
Copy link
Author

Zyin055 commented Mar 9, 2024

Ran the .exe version and the caption model worked.

The captions it made aren't much different than BLIP though, so /shrug

@Zyin055 Zyin055 closed this as completed Mar 9, 2024
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