ganslate-team / ganslate

Simple and extensible GAN image-to-image translation framework. Supports natural and medical images.
https://ganslate.readthedocs.io
Other
34 stars 3 forks source link

multi_dataset breaks interpolation #68

Closed ibro45 closed 3 years ago

ibro45 commented 3 years ago

E.g.


val:
    freq: 1000

    multi_dataset:
        lungs:
            name: "CBCTtoCTValTestDataset"
            root: "/workspace/train_val/val"

        phantoms:
            name: "CBCTtoCTValTestDataset"
            root: "/workspace/train_val/val_phantom"

test:
    dataset: "${val.multi_dataset}"
    sliding_window: "${val.sliding_window}"

build_loader selects a single dataset from multi_dataset, assigns it to dataset and sets multi_dataset to None. This breaks interpolation when it's referring to multi_dataset.

Error:

omegaconf.errors.ConfigKeyError: str interpolation key 'val.multi_dataset' not found               
        full_key: test.dataset                                                                                                   
        reference_type=Optional[Dict[Union[str, Enum], Any]]                                                                      
        object_type=dict