Skip to content

The cell_typist_model downloading is not working properly #55

@AlbertPlaPlanas

Description

@AlbertPlaPlanas

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions