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

Crash if deepdanbooru model is incomplete/corrupt. #7

Open
tazlin opened this issue Oct 6, 2023 · 0 comments
Open

Crash if deepdanbooru model is incomplete/corrupt. #7

tazlin opened this issue Oct 6, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tazlin
Copy link
Member

tazlin commented Oct 6, 2023

The file should be SHA256 summed and a validation of this fact on init should occur.

Ideally:

  • The last modified date of the model is noted
  • The SHA256 sum and last modified date is saved to a meta file
  • On an attempt to load, the SHA256 sum is compared to the saved meta file's last modified date, and if it the model on disk is newer, reevaluate it.
  • If the model is the wrong SHA, halt (or redownload)
@tazlin tazlin self-assigned this Oct 6, 2023
@tazlin tazlin added the bug Something isn't working label Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant