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

functions in pyc file #1

Open
MarijaI opened this issue Dec 19, 2022 · 3 comments
Open

functions in pyc file #1

MarijaI opened this issue Dec 19, 2022 · 3 comments

Comments

@MarijaI
Copy link

MarijaI commented Dec 19, 2022

In order to execute the first example for Spatial-ID it is necessary to import
from cell_type_annotation_model import DNNModel, SpatialModelTrainer
Cell type annotation model is only available in *.pyc file, that is, I assume, compiled for some specific CPU.
Could you, maybe, provide corresponding *.py file or provide instruction how to overcome this issue?

Thanks in advance,
Marija

@SilversH
Copy link
Collaborator

Hi, we have test *.pyc file can be used in the same way as *.py file when importing functions. Have you tried to run one of the scripts? Did any problems ocurr?

@ZifengLyu
Copy link

Sry, I can't import pyc file due to a error named "bad magic number in 'cell_type_annotation_model': b'\n\n\n\n'", it is caused by the version of python compiling py to pyc file, could you solve this problem?

@SilversH
Copy link
Collaborator

SilversH commented Apr 6, 2023

Hi, I've test this error, simply downgrading to pytorch 1.8 would solve it.

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

3 participants