-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
How to read images in TIFF format as a dataset. #3472
Comments
You can change your dataset configs
more details about mmsegmentation/mmseg/datasets/transforms/loading.py Lines 503 to 556 in c685fe6
|
How is this different than using |
I'm not sure whether backends |
Hello,我猜老铁是个Chinese,我用中文说可能表达更清楚。 train_pipeline = [
dict(type=LoadSingleRSImagFromFile) 是用的 new config,所以没有加引号。 train_pipeline = [
dict(type='LoadSingleRSImagFromFile') 要这么写,理论上不会出现这个错误。
这个位置,是否有 LoadSingleRSImagFromFile
|
十分感谢,是我拼写有问题 |
I created a dataset called MyDataset, and the input images are (c, h, w). Since c>3, I chose a TIFF format image for my input images.
I learned from #2903 that I can use backend_ args ,this parameter is used to specify the backend for reading images, and supports Tiff format images .
I followed #2468 and mmengine.fileio.io to operate, but an error occurred, so how should I solve this problem.
File "/data/lh/miniconda3/envs/torch/lib/python3.8/site-packages/mmengine/fileio/io.py", line 97, in _get_file_backend
backend = backends[backend_name](** backend_args_bak)
KeyError: 'tifffile'
During handling of the above exception, another exception occurred:
File "/data/lh/miniconda3/envs/torch/lib/python3.8/site-packages/mmengine/registry/build_functions.py", line 144, in build_from_cfg
raise type(e)(
KeyError: "class
MyDataset
in mmseg/datasets/MyDataset.py: 'tifffile'"File "/data/lh/miniconda3/envs/torch/lib/python3.8/site-packages/mmengine/registry/build_functions.py", line 144, in build_from_cfg
raise type(e)(
KeyError: 'class
IterBasedTrainLoop
in mmengine/runner/loops.py: "classMyDataset
in mmseg/datasets/MyDataset.py: 'tifffile'"'The text was updated successfully, but these errors were encountered: