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

Issue with Offline Label Transfer #122

Open
macelik opened this issue Jun 5, 2024 · 2 comments
Open

Issue with Offline Label Transfer #122

macelik opened this issue Jun 5, 2024 · 2 comments

Comments

@macelik
Copy link

macelik commented Jun 5, 2024

Hello there,

First off, I want to say thank you for the great tool and excellent documentation!

I have a question regarding the label transfer process. I trained CellTypist with a reference dataset, but when I try to annotate, the tool attempts to download the models.json file from this URL. Unfortunately, I am working on a compute node without an internet connection.

Is there a way to bypass this download requirement?

Thanks in advance for your help!
Muhammet

@macelik
Copy link
Author

macelik commented Jun 5, 2024

Anyone who experience the same issue. I loaded the model manually before calling annotation function.

from celltypist import models
models.models_path='./'
model = models.Model.load(model = 'model_from_lasry.pkl')

@ChuanXu1
Copy link
Collaborator

ChuanXu1 commented Jun 6, 2024

@macelik, please install the latest celltypist (v1.6.3), and usemodel = models.Model.load(model = './model_from_lasry.pkl'), which should allow you to load models offline.

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

2 participants