CLAM
CLAM copied to clipboard
KeyError: "Unable to synchronously open attribute (can't locate attribute: 'patch_level')"
Hi,
I ran the patch creator script to generate h5 files. I then ran the 'create_features_fp.py' script to obtain feature vectors.
However, I get the following error:
Traceback (most recent call last):
File "/rds/general/user/kp4718/home/RCS_help/CLAM/extract_features_fp.py", line 100, in
I checked the h5 files and I found that they do not have the attribute patch_level.
What options should I give to create_patches.py to avoid this error? I ran it as follows: python create_patches.py --source surformerpat --save_dir surformertiles --patch_size 256 --patch_level 2 --seg --patch --stitch
maybe you need to run extract_features_fp.py