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

Colab .cache weights and config #320

Open
krupeshp opened this issue Apr 22, 2024 · 3 comments
Open

Colab .cache weights and config #320

krupeshp opened this issue Apr 22, 2024 · 3 comments
Labels
answered Issue answered or reacted

Comments

@krupeshp
Copy link

@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?

@JaMe76
Copy link
Contributor

JaMe76 commented Apr 22, 2024

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

@krupeshp
Copy link
Author

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

@JaMe76
Copy link
Contributor

JaMe76 commented Apr 22, 2024

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 JaMe76 added the answered Issue answered or reacted label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered Issue answered or reacted
Projects
None yet
Development

No branches or pull requests

2 participants