Comments (1)
@nickshawn You're probably trying to apply augmentations that expect the input image to have 3 color channels. If you have a gray-scale image as your input - which it seems like you do - then you need to make sure you don't use augmentations that work with color channels. For example, an augmenter such as AddToHueAndSaturation
would raise that error since it expects the input image to have color channels as far as I can tell.
So the solution is to use augmenters that don't work on color channels or to convert your images to RGB, augment, and then convert back (not ideal performance-wise).
from imgaug-doc.
Related Issues (17)
- Confusing info on JPG Compression HOT 1
- Callable Object HOT 4
- Augmenting data that was annotated using COCO format HOT 2
- Conda install doesnt work HOT 1
- Exporting seq to json
- Inverse is needed for object detection
- AttributeError: module 'imgaug' has no attribute 'imshow' HOT 2
- Question : Does imgaug support combining two or more images together as part of augmentation? HOT 1
- Docu update bbs attribute label
- do we have reversible (equivariant) augmentation in here?
- Missing Support for arbitary dtypes and frames dimension HOT 2
- colab mportError: cannot import name 'SegmentationMapsOnImage' from 'imgaug.augmentables.segmaps' (/usr/local/lib/python3.7/dist-packages/imgaug/augmentables/segmaps.py)
- imgaug.py:2120: MatplotlibDeprecationWarning: The set_window_title function was deprecated
- bounding boxes leaving and entering again the image
- LaTeX at notebooks/A02 doesn't work HOT 1
- about the aug in a batch
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 imgaug-doc.