Comments (7)
Do you mean something like this?
img1 = cv2.imread('image1.png')
img2 = cv2.imread('image2.png')
img3 = cv2.imread('image3.png')
pipeline.augment([img1,img2,img3])
from augraphy.
Yes, so the pipeline should run across multiple images and generate randomize effect on each image.
from augraphy.
@kwcckw Can you elaborate on the interface signature that is needed to fulfill this requirement? Also, is there anything needed here to make Augraphy work better with other pipelines such as PyTorch or TensorFlow, etc?
from augraphy.
I think it could be similar with imgaug
where the augmentation pipeline is able to accept batches of images. In their example, their pipeline is able to receive multiple images and process them in a single pipeline:
https://imgaug.readthedocs.io/en/latest/source/examples_basics.html
Right now Augraphy accept only colored image (ysize, xsize, channels)
or grayscale image (ysize, xsize)
. We can have another preprocessing step to check if the input format is multiple images and apply the pipeline sequentially. Typically those multiple images input format can be in (number_images, ysize, xsie, channels)
or a list contains multiple colored or grayscale images.
To allow Augraphy work better with Pytorch and Tensorflow, I think we will need to test run it by having Augraphy pipeline in those deep learning frameworks' dataloader. We can further improvise Augraphy if there's any issue or problem by running Augraphy pipeline in their dataloader. Then, we can include some examples on the steps to use it in our doc too, similar with Albumentations
:
https://albumentations.ai/docs/examples/tensorflow-example/
https://albumentations.ai/docs/examples/pytorch_semantic_segmentation/
from augraphy.
@kwcckw I see #267 mentions implementation of batch processing in the pipeline. Does this fully address the concerns raised in this issue? Is there any new documentation or examples that can show how this can integrate with a dataloader for one of the DNN frameworks?
from augraphy.
@kwcckw I see #267 mentions implementation of batch processing in the pipeline. Does this fully address the concerns raised in this issue? Is there any new documentation or examples that can show how this can integrate with a dataloader for one of the DNN frameworks?
Yes, but the integration with deep learning will be tested and implemented on the next step. Right now we support batches of images, they can either in list of images or 4D images. I added examples here:
https://github.com/sparkfish/augraphy/blob/dev/examples/Augraphy_usage_examples.ipynb
from augraphy.
Thanks @kwcckw. I've created a separate issue for a later sprint to deal with creating dataloader examples (#271).
from augraphy.
Related Issues (20)
- Create Baseline Performance Benchmark; Apply Initial Optimizations Using Numba HOT 2
- Create Example Using Dataloader for PyTorch and TensorFlow HOT 1
- Add Python 3.11 Support, Drop Python 3.7 HOT 2
- Images Broken in PyPI Listing HOT 2
- Reflected Light from Camera Flash or other Bright Sources HOT 1
- Add Color Shifting / 3D Blur Effect HOT 4
- Improve PageBorder effect HOT 1
- Add support for bounding box, keypoints and mask. HOT 1
- Add `InkColorSwap` to Replace the Color Used for Lettering in a Document HOT 1
- Add `InkMottling` Augmentation to Ensure Ink is Non-Uniform HOT 1
- Add support for image with alpha layer. HOT 1
- Color range in InkBleed is not working HOT 1
- Update to Paper Factory HOT 1
- Confusion on `Geometric` Augmentation HOT 2
- Memory leak in AugmentationSequence HOT 4
- Training becomes very slow with these transforms. HOT 10
- ColorPaper cant generate different color in the cycle running HOT 2
- DirtyScreen doesnt work and crashes jupyterlabs HOT 2
- stucked when I process image in the cycle HOT 5
- Default pipeline generates many "unreadable" documents HOT 3
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 augraphy.