Comments (7)
Feeling adventurous, I tried to follow the original sequence. opencv-python then albumentations then ADDED a new line of uninstalling opencv-python-headless.
FROM ros:humble-ros-base
RUN apt-get update && apt-get install -y python3-pip
RUN pip install --upgrade pip
RUN pip install opencv-python==4.9.0.80
RUN pip install albumentations --no-binary albumentations
RUN pip uninstall opencv-python-headless
There were no errors during the uninstallation of headless. I then went into python to do some basic test of cv2.
import cv2 yields no error, but it is already damaged when I tried to print cv2.version (no such attribute), file shows empty. And some other basic functions shows problems as well.
from albumentations.
from albumentations.
I am not really an expert on how pip handles depencencies, especially dynamic ones.
If someone knows how to do it better - would be great.
First issue that I see is that
pip install albumentations --no-binary albumentations
Does not behave as expected and! We do not have a check in CI/CD to check for that.
Second is that overall dynamic dependencies do not work as expected.
Does this work if write it like
RUN pip install opencv-python==4.9.0.80
RUN pip install albumentations --no-binary albumentations
I.e. switch lines?
from albumentations.
I am not really an expert on how pip handles depencencies, especially dynamic ones.
If someone knows how to do it better - would be great.
First issue that I see is that
pip install albumentations --no-binary albumentationsDoes not behave as expected and! We do not have a check in CI/CD to check for that.
Second is that overall dynamic dependencies do not work as expected.
Does this work if write it like
RUN pip install opencv-python==4.9.0.80 RUN pip install albumentations --no-binary albumentations
I.e. switch lines?
Hi, did you instead mean run the installation of albumentations first, followed by installation of opencv-python?
I'll do a quick try now.
from albumentations.
I've tried reversing the sequence as stated above. pip installation of albumentations followed by opencv-python does not show any errors. But inside python, importing cv2 immediately breaks.
from albumentations.
What about
FROM ros:humble-ros-base
RUN apt-get update && apt-get install -y python3-pip
RUN pip install --upgrade pip
RUN pip uninstall opencv-python opencv-python-headless
RUN pip install albumentations --no-binary albumentations
RUN pip install opencv-python==4.9.0.80
Could ros:humble-ros-base
has opencv opencv-heasdless being already instsalled so that is messes with the installation
from albumentations.
What about
FROM ros:humble-ros-base RUN apt-get update && apt-get install -y python3-pip RUN pip install --upgrade pip RUN pip uninstall opencv-python opencv-python-headless RUN pip install albumentations --no-binary albumentations RUN pip install opencv-python==4.9.0.80
Could
ros:humble-ros-base
has opencv opencv-heasdless being already instsalled so that is messes with the installation
just did a quick check and no opencv exists under ros:humble-ros-base. Not even under "apt install"
from albumentations.
Related Issues (20)
- [it may be a bug but I am not sure] rotating and cropping adding in pixels HOT 4
- keypoint position shifting during image rotation HOT 3
- Data loading does not start when num_workers > 0 in 1.4.10 HOT 4
- [Benchmark] Add transforms from Kornia HOT 1
- [Tech Debt, Speedup] Move to_float to albucore
- ISONoise not working in 1.4.10 HOT 1
- [Bug] Issue in RandomCrop HOT 1
- Coarse Dropout ignores remove_invisible parameter
- [Feature request] Add LetterBox
- Affine rotate shear after the picture frame does not overlap the object HOT 4
- Yolo bbox conversion produces negative values HOT 3
- Too noisy upgrade warning HOT 12
- AttributeError: 'Compose' object has no attribute 'strict' HOT 5
- How is the pad_cval defined of CropAndPad? HOT 1
- Image and mask augmentations cause error when converting NumPy to PyTorch - [ValueError: At least one stride in the given numpy array is negative, and tensors with negative strides are not currently supported.] HOT 5
- [Benchmark] unable to test the given dataset ILSVRC2012_img_val or owndataset to test the image_benchmark.py with. HOT 2
- Grid-based Elastic Transformation HOT 1
- Root logger conflict with my custom logging structure HOT 2
- HistogramMatching returns wrong image HOT 3
- Mistyping in validation of `ColorJitter` transform HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from albumentations.