deepdoctection icon indicating copy to clipboard operation
deepdoctection copied to clipboard

Colab .cache weights and config

Open krupeshp opened this issue 10 months ago • 3 comments

@JaMe76 I am using colab when I try to make my pipeline and try to load layout-parser models but I don't know where should I load it. As it has no ".cache" directory. can you let me know if I create a folder and load weights and config files from that folder it will be handy. Can you share how to load?

krupeshp avatar Apr 22 '24 13:04 krupeshp

Check this tutorial. It shows you how to save your models manually in the .cache and how to add the model to the ModelCatalog.

JaMe76 avatar Apr 22 '24 13:04 JaMe76

I read that already, but i am using "Google colab". Do you have any idea where i can locate ".cache" in google colab?

krupeshp avatar Apr 22 '24 14:04 krupeshp

To get the .cache you can find it like that

from deepdoctection.utils.settings import dd_cache_home

print(dd_cache_home)

You can also change the .cache dir by changing the env variable before setting everything else up: DEEPDOCTECTION_CACHE.

JaMe76 avatar Apr 22 '24 14:04 JaMe76

Stale issue message

github-actions[bot] avatar Jun 22 '24 13:06 github-actions[bot]