Skip to content

Uninstall opencv included in base image#7626

Merged
KumoLiu merged 7 commits into
Project-MONAI:devfrom
KumoLiu:opencv
Apr 12, 2024
Merged

Uninstall opencv included in base image#7626
KumoLiu merged 7 commits into
Project-MONAI:devfrom
KumoLiu:opencv

Conversation

@KumoLiu

@KumoLiu KumoLiu commented Apr 11, 2024

Copy link
Copy Markdown
Contributor

Fixes tutorial #1689

Description

Uninstall opencv included in base image.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
@Nic-Ma Nic-Ma requested a review from binliunls April 11, 2024 10:06

@mingxin-zheng mingxin-zheng left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. The opencv in the pytorch container doesn't include packages in opencv-headless, and potentially causes issues for video processing.

@binliunls

Copy link
Copy Markdown
Contributor

Could you please run this notebook after uninstall the opencv? The VideoFileDataset is using the opencv lib. I am afraid of removing the lib impacts it.

Thanks,
Bin

@KumoLiu

KumoLiu commented Apr 12, 2024

Copy link
Copy Markdown
Contributor Author

Could you please run this notebook after uninstall the opencv? The VideoFileDataset is using the opencv lib. I am afraid of removing the lib impacts it.

Add opencv-python-headless in the requirement-dev and verify the notebook.

@KumoLiu

KumoLiu commented Apr 12, 2024

Copy link
Copy Markdown
Contributor Author

/build

KumoLiu added 2 commits April 12, 2024 15:37
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
@KumoLiu

KumoLiu commented Apr 12, 2024

Copy link
Copy Markdown
Contributor Author

/build

@KumoLiu KumoLiu enabled auto-merge (squash) April 12, 2024 08:07
@KumoLiu KumoLiu merged commit 1268488 into Project-MONAI:dev Apr 12, 2024
@KumoLiu KumoLiu deleted the opencv branch April 12, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

module 'cv2.dnn' has no attribute 'DictValue'

4 participants