You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: Key img_path is not in available keys.
2024/06/05 15:33:54 INFO mlflow.system_metrics.system_metrics_monitor: Stopping system metrics monitoring...
2024/06/05 15:33:54 INFO mlflow.system_metrics.system_metrics_monitor: Successfully terminated system metrics monitoring!
I hit this bug when I run a pipeline which is almost identical to the example in configs/
changed the title [-]I don't think the albumentations pipeline is working[/-][+]img_path is not in available keys when running albumentations pipeline[/+]on Jun 5, 2024
Thanks so much, that was super helpful! I found that I needed a feature released after 1.3.1 though, and it turns out that the issue seems to have been introduced in 1.4.7, so any version below that should work.
Oh thanks lol, I never noticed that! I had been working around that by just setting a single pixel per class on the image in the corners, so that every mask had at least one pixel of every class, but this seems way better!
Also, I believe 1.4.11 could work too if strict=False was passed to albumentations.Compose, as specified in the Core section of the 1.4.11 release notes, though I haven't tried it yet.
Activity
[-]I don't think the albumentations pipeline is working[/-][+]img_path is not in available keys when running albumentations pipeline[/+]GeorgePearse commentedon Jun 5, 2024
Changed the version to 1.3.1 and it worked
Theelx commentedon Jun 28, 2024
Thanks so much, that was super helpful! I found that I needed a feature released after 1.3.1 though, and it turns out that the issue seems to have been introduced in 1.4.7, so any version below that should work.
GeorgePearse commentedon Jul 22, 2024
@Theelx thanks so much to you too. Looks like I now need that feature! Was just hitting a mysterious bug, and thought I'd try this. Working perfectly.
GeorgePearse commentedon Jul 22, 2024
There's also this fix for empty images that it took me a bit too long to discover.
#11432
Theelx commentedon Jul 22, 2024
Oh thanks lol, I never noticed that! I had been working around that by just setting a single pixel per class on the image in the corners, so that every mask had at least one pixel of every class, but this seems way better!
Theelx commentedon Jul 22, 2024
Also, I believe 1.4.11 could work too if
strict=False
was passed toalbumentations.Compose
, as specified in the Core section of the 1.4.11 release notes, though I haven't tried it yet.Theelx commentedon Jul 22, 2024
Ok, I can confirm that passing
strict=False
to mmsegmentation's codebase's initialization of albumentations.Compose results in it working with mmdeploy, so I'd think the same would happen with mmdetection.Fix albu versions >= 1.4.11 (open-mmlab#11770)