Skip to content

Update File path to work with relative asset paths#1

Open
s0mya wants to merge 1 commit intomainfrom
somya/smirk_path_fixed
Open

Update File path to work with relative asset paths#1
s0mya wants to merge 1 commit intomainfrom
somya/smirk_path_fixed

Conversation

@s0mya
Copy link
Owner

@s0mya s0mya commented Sep 18, 2024

The assets were not loading from other projects, this fixes the asset paths to use relative lookups.

Comment on lines +71 to +79
if not flame_model_path.startswith("/"):
# resolve local assets path
flame_model_path = os.path.join(DIRNAME, "../..", flame_model_path)

if not flame_lmk_embedding_path.startswith("/"):
# resolve local assets path
flame_lmk_embedding_path = os.path.join(
DIRNAME, "../..", flame_lmk_embedding_path
)
Copy link
Owner Author

Choose a reason for hiding this comment

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

Fix Path

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.

1 participant