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

TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType #12

Open
28YOGESH opened this issue Feb 28, 2024 · 0 comments

Comments

@28YOGESH
Copy link

Traceback (most recent call last):
File "api_for_multistep.py", line 110, in
model_dump="model_saved/model_for_multi_step.ckpt"
File "api_for_multistep.py", line 41, in init
one_step = prepare_single_step_model(model_dump)
File "/home/csn/Desktop/RetroExplainer/model/util.py", line 119, in prepare_single_step_model
single_step_model = RetroAGT.load_from_checkpoint(ckpt, strict=False)
File "/home/csn/anaconda3/envs/RetroExplainer/lib/python3.7/site-packages/pytorch_lightning/core/saving.py", line 169, in load_from_checkpoint
model = cls._load_model_state(checkpoint, *args, **kwargs)
File "/home/csn/anaconda3/envs/RetroExplainer/lib/python3.7/site-packages/pytorch_lightning/core/saving.py", line 205, in _load_model_state
model = cls(*cls_args, **cls_kwargs)
File "/home/csn/Desktop/RetroExplainer/model/RetroAGT.py", line 90, in init
assert os.path.isfile(leaving_group_path)
File "/home/csn/anaconda3/envs/RetroExplainer/lib/python3.7/genericpath.py", line 30, in isfile
st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Please sir give a solution for this error. How i can solve this error.

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

1 participant