GithubHelp home page GithubHelp logo

Comments (7)

proofconstruction avatar proofconstruction commented on May 28, 2024

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.

kwcckw avatar kwcckw commented on May 28, 2024

Yes, so the pipeline should run across multiple images and generate randomize effect on each image.

from augraphy.

jboarman avatar jboarman commented on May 28, 2024

@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.

kwcckw avatar kwcckw commented on May 28, 2024

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.

jboarman avatar jboarman commented on May 28, 2024

@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 avatar kwcckw commented on May 28, 2024

@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.

jboarman avatar jboarman commented on May 28, 2024

Thanks @kwcckw. I've created a separate issue for a later sprint to deal with creating dataloader examples (#271).

from augraphy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.