Remove populate_db_with_asset from load_torch_file for now, as nothing yet uses the hashes

This commit is contained in:
Jedrzej Kosinski 2025-09-26 20:33:46 -07:00
parent 9f4c0f3afe
commit adccfb2dfd

View File

@ -103,7 +103,7 @@ def load_torch_file(ckpt, safe_load=False, device=None, return_metadata=False):
else:
sd = pl_sd
populate_db_with_asset(ckpt)
# populate_db_with_asset(ckpt) # surprise tool that can help us later - performs hashing on model file
return (sd, metadata) if return_metadata else sd
def save_torch_file(sd, ckpt, metadata=None):