theovercomer8 / captionr

GIT/BLIP/CLIP Caption tool
MIT License
138 stars 15 forks source link

Error loading Cache Table Invalid Load Key #8

Closed mindsailor closed 1 year ago

mindsailor commented 1 year ago

I opened a couple of different colabs accounts today both with different zips, and both after a couple of runtime restarts were still exhibiting this behavior from the stock colab link on github.

Was hoping you may be able to offer insight. Thank you!

Error

theovercomer8 commented 1 year ago

Sorry I broke some dependencies earlier. It should be fixed now.

On Sat, Feb 18, 2023 at 7:28 PM mindsailor @.***> wrote:

I opened a couple of different colabs accounts today both with different zips, and both after a couple of runtime restarts were still exhibiting this behavior from the stock colab link on github.

Was hoping you may be able to offer insight. Thank you!

[image: Error] https://user-images.githubusercontent.com/24350726/219905464-ca870645-4639-4256-8a0e-9eb9717ad2a4.png

— Reply to this email directly, view it on GitHub https://github.com/theovercomer8/captionr/issues/8, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5HWTBO6S3OAY3PBZDGO3QLWYFSLLANCNFSM6AAAAAAVAULQSY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mindsailor commented 1 year ago

I tried a few times I got original error and also

Traceback (most recent call last): File "/content/captionr/captionr/captionr_class.py", line 251, in process_img dirname = os.path.dirname(cap_file) if config.output == '' or config.output is None else str(config.output[0]) TypeError: 'PosixPath' object is not subscriptable

not sure it's related but I see this error in dependencies

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. tensorflow 2.11.0 requires protobuf<3.20,>=3.9.2, but you have protobuf 3.20.3 which is incompatible.

samp3209 commented 1 year ago

I'm also running into the same problem at mindsailor with the posixpath issue. I think that issue has something to do with the output directory location.

mindsailor commented 1 year ago

Ran Posix error through GPT and it told me to replace /content/captionr/captionr/captionr_class.py Line 251 with dirname = os.path.dirname(cap_file) if config.output == '' or config.output is None else (list(config.output)[0] if isinstance(config.output, (list, tuple)) else config.output)

I still got key errors however once this passed, captions began as normal.

ERROR:root:Error loading cached table artists: invalid load key, 'E'. ERROR:root:Error loading cached table mediums: invalid load key, 'E'. ERROR:root:Error loading cached table movements: invalid load key, 'E'. ERROR:root:Error loading cached table trendings: invalid load key, 'E'.

theovercomer8 commented 1 year ago

I think the first cache table issue is related to an out of date notebook. Can you verify you're on the latest revision in Colab by going to File->Revision History and making sure the right column has the top-most revision selected:

image

As far as the other issue you both had, can you get latest and see if its resolved?

samp3209 commented 1 year ago

Looks like the issue with the Posix Path was fixed with newest colab. Thanks!

mindsailor commented 1 year ago

Posix error is fixed here as well. Thank you!