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

Custom FONT_DIR did not take effect #240

Open
xiaoyao9184 opened this issue Nov 9, 2024 · 0 comments
Open

Custom FONT_DIR did not take effect #240

xiaoyao9184 opened this issue Nov 9, 2024 · 0 comments

Comments

@xiaoyao9184
Copy link

The FONT_DIR was overridden by an external environment variable,
but the final RECOGNITION_RENDER_FONTS still uses the old value.
Perhaps I should override RECOGNITION_RENDER_FONTS as well,
or make RECOGNITION_RENDER_FONTS a dynamic property,
like

surya/surya/settings.py

Lines 88 to 91 in a8b34c4

@computed_field
@property
def MODEL_DTYPE(self) -> torch.dtype:
return torch.float32 if self.TORCH_DEVICE_MODEL == "cpu" else torch.float16
.

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

No branches or pull requests

1 participant