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

KeyError: 'Rank' #16

Open
x33rak opened this issue Jun 27, 2022 · 7 comments
Open

KeyError: 'Rank' #16

x33rak opened this issue Jun 27, 2022 · 7 comments

Comments

@x33rak
Copy link

x33rak commented Jun 27, 2022

What would be the solution for an error like this?

Traceback (most recent call last):
File "tools/test.py", line 139, in
main()
File "tools/test.py", line 105, in main
init_dist(args.launcher, **cfg.dist_params)
File "/data/name/anaconda3/envs/EDTER/lib/python3.8/site-packages/mmcv/runner/dist_utils.py", line 18, in init_dist
_init_dist_pytorch(backend, **kwargs)
File "/data/name/anaconda3/envs/EDTER/lib/python3.8/site-packages/mmcv/runner/dist_utils.py", line 29, in _init_dist_pytorch
rank = int(os.environ['RANK'])
File "/data/name/anaconda3/envs/EDTER/lib/python3.8/os.py", line 675, in getitem
raise KeyError(key) from None
KeyError: 'RANK'

@MengyangPu
Copy link
Owner

trian.py 18 line: os.environ['RANK']='0'

@x33rak
Copy link
Author

x33rak commented Jun 28, 2022

KeyError: 'BSDSDataset is not in the dataset registry'

Can you provide BSDSdataset as well?

@MengyangPu
Copy link
Owner

Please check BSDSDataset class.

@x33rak
Copy link
Author

x33rak commented Jun 28, 2022

am i supposed to provide the img suffix and seg map suffix?

@x33rak
Copy link
Author

x33rak commented Jun 30, 2022

Please check BSDSDataset class.

@MengyangPu could you please elaborate on what I need to do in the BSDSDataset class?

@chenguilin111
Copy link

What would be the solution for an error like this?

Traceback (most recent call last): File "tools/test.py", line 139, in main() File "tools/test.py", line 105, in main init_dist(args.launcher, **cfg.dist_params) File "/data/name/anaconda3/envs/EDTER/lib/python3.8/site-packages/mmcv/runner/dist_utils.py", line 18, in init_dist _init_dist_pytorch(backend, **kwargs) File "/data/name/anaconda3/envs/EDTER/lib/python3.8/site-packages/mmcv/runner/dist_utils.py", line 29, in _init_dist_pytorch rank = int(os.environ['RANK']) File "/data/name/anaconda3/envs/EDTER/lib/python3.8/os.py", line 675, in getitem raise KeyError(key) from None KeyError: 'RANK'

could you tell me how do you solve this problem?

@MengyangPu
Copy link
Owner

Please check BSDSDataset class.

@MengyangPu could you please elaborate on what I need to do in the BSDSDataset class?

An incomplete environment may cause the above issue. Please check your environment, especially the following commands:

cd EDTER
pip install -e . # or "python setup.py develop"
pip install -r requirements/optional.txt

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