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

add model(sam&dino) global cache to optimize performance #58

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JeryZeng
Copy link

sometimes we use sam in multiple workflow,to save model load time between multi workflow,I add the model global cache logic ,user can turn off global cache in "Loaders" UI(cache behavior is default on)

return sam


def get_local_filepath(url, dirname, local_file_name=None):
if not local_file_name:
parsed_url = urlparse(url)
local_file_name = os.path.basename(parsed_url.path)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wanna remove this?

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

Successfully merging this pull request may close these issues.

2 participants