English image_classifier_vit_roomclassifier ViTForImageClassification from lazyturtl

Description

Pretrained VIT model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.image_classifier_vit_roomclassifier is a English model originally trained by lazyturtl.

Predicted Entities

Kitchen, Bedroom, Bathroom, Livingroom, DinningRoom, Laundry room

Download Copy S3 URICopied!

How to use


image_assembler = ImageAssembler() \
    .setInputCol("image") \
    .setOutputCol("image_assembler")

imageClassifier = ViTForImageClassification \
    .pretrained("image_classifier_vit_roomclassifier", "en")\
    .setInputCols("image_assembler") \
    .setOutputCol("class")

pipeline = Pipeline(stages=[
    image_assembler,
    imageClassifier,
])

pipelineModel = pipeline.fit(imageDF)

pipelineDF = pipelineModel.transform(imageDF)

Model Information

Model Name: image_classifier_vit_roomclassifier
Compatibility: Spark NLP 4.1.0+
License: Open Source
Edition: Official
Input Labels: [image_assembler]
Output Labels: [class]
Language: en
Size: 321.9 MB