Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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 #9

Open
fxhaaa opened this issue Jun 24, 2023 · 1 comment

Comments

@fxhaaa
Copy link

fxhaaa commented Jun 24, 2023

Traceback (most recent call last):
File "C:\Users\fengxiaohu\Downloads\Compressed\FSL\Prompt\CaFo-main\main.py", line 276, in
main()
File "C:\Users\fengxiaohu\Downloads\Compressed\FSL\Prompt\CaFo-main\main.py", line 175, in main
assert (os.path.exists(args.config))
File "C:\Users\fengxiaohu\Anaconda3\envs\Anaconda3\lib\genericpath.py", line 19, in exists
os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
如何解决呢?感谢回复

@AtharvaJadhav7
Copy link

you have to run python file with --config value while running i.e in repo there are various config files in cofigs folder, pass it as an cofig argument while running main file like below
python main.py --config config_name.yaml

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