-
Notifications
You must be signed in to change notification settings - Fork 861
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
[multimodal] wrap the dataset_mmlab/__init__.py with try except #3277
[multimodal] wrap the dataset_mmlab/__init__.py with try except #3277
Conversation
Job PR-3277-181621d is done. |
from .multi_image_mix_dataset import MultiImageMixDataset | ||
try: | ||
from .multi_image_mix_dataset import MultiImageMixDataset | ||
except ImportError: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it supposed to be ImportError
? The error message looks like: NameError: name BaseTransform
is not defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's ImportError
. Previously we set BaseTransform=None
if import failed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A safer way may be just removing ImportError
. Remember double-checking the installation for the nightly build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default, mmlab packages are not installed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have the installation check if mmdet is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. Also need to check whether the nightly build works without installing the mmlab packages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I'll check with my repo again and will merge this if it works correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked for this branch in a new virtual environment (Linux). For object detection it shows installation guidance correctly, and for other tasks it works correctly as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Remember double-check whether the nightly build works without installing mmlab packages.
Address the comments in #3266
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.