-
Notifications
You must be signed in to change notification settings - Fork 340
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
About Test #354
Comments
文件“test.py”,第 121 行,在 KeyError:“label_meta_dict” I have also encountered this problem. How can I solve “label_meta_dict” and “affine” |
The issue with the key error may be related to changes to |
Hello, may I ask which version of MONAI corresponds to the current swinUNETR? I'm unable to install it from the requirements.txt. Thank you! |
|
When I run test.py, an error is reported in the console. The traceback is as follows:
Traceback (most recent call last):
File "test.py", line 121, in
main()
File "test.py", line 94, in main
original_affine = batch["label_meta_dict"]["affine"][0].numpy()
KeyError: 'label_meta_dict'
How should I fix this?Additionally, how can I obtain the segmentation accuracy for each organ in the BTCV dataset? Looking forward to your response.
This is the "val" part of my dataset.json.
"validation": [
{
"image": "imagesTr/img0035.nii.gz",
"label": "labelsTr/label0035.nii.gz"
},
{
"image": "imagesTr/img0036.nii.gz",
"label": "labelsTr/label0036.nii.gz"
},
{
"image": "imagesTr/img0037.nii.gz",
"label": "labelsTr/label0037.nii.gz"
},
{
"image": "imagesTr/img0038.nii.gz",
"label": "labelsTr/label0038.nii.gz"
},
{
"image": "imagesTr/img0039.nii.gz",
"label": "labelsTr/label0039.nii.gz"
},
{
"image": "imagesTr/img0040.nii.gz",
"label": "labelsTr/label0040.nii.gz"
}
]
Looking forward to your response.
The text was updated successfully, but these errors were encountered: