-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Discussed in #52
Originally posted by Lyeleyl June 13, 2025
I tried to use Adult_Human_Skin.pkl. The codes below cannot properly download models from the website, so I can only download models by myself and put them in the directory.
Check if the model file exists on disk
if os.path.isfile(self.cell_typist_model):
# The model file already exists on disk; no further action is required.
pass
else:
# The model file does not exist on disk;
if not self.cell_typist_model.endswith(".pkl"):
# Append '.pkl' if not already present
self.cell_typist_model = self.cell_typist_model + ".pkl"
if not os.path.isfile(self.cell_typist_model):
# Download model if it does not exist
models.download_models(model=self.cell_typist_model)</div>
Metadata
Metadata
Assignees
Labels
No labels