Basic image classification
This example shows pipeline for basic image classification
Coplete source code for example can be found in programs.image_processing.basic_image_classification.
Imports that will be used
import pathlib
PATH = pathlib.Path(__file__).parent.resolve()
from utca.implementation.tasks import TransformersImageClassification
from utca.implementation.datasources.image import ImageReadPipeline
pipeline = (
ImageRead() | TransformersImageClassification()
)ImageRead is used to open image file.
For image classification used TransformersImageClassification.
For more, see:
ImageTransformersImageClassificationRun program
Inputs
"path_to_file": path that directs to a file that should be in programs.image_processing.basic_image_classification. This is an image of German Shepherd Dog.
Results
The results should look like this:
Last updated