From 327be5ed9830f3827e087055412523b665be2cb0 Mon Sep 17 00:00:00 2001 From: gadde5300 Date: Wed, 5 Jul 2023 22:44:56 +0700 Subject: [PATCH] Add model 2023-07-05-image_classifier_convnext_tiny_224_local_en --- ...e_classifier_convnext_tiny_224_local_en.md | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 docs/_posts/gadde5300/2023-07-05-image_classifier_convnext_tiny_224_local_en.md diff --git a/docs/_posts/gadde5300/2023-07-05-image_classifier_convnext_tiny_224_local_en.md b/docs/_posts/gadde5300/2023-07-05-image_classifier_convnext_tiny_224_local_en.md new file mode 100644 index 00000000000000..9d4e1557756535 --- /dev/null +++ b/docs/_posts/gadde5300/2023-07-05-image_classifier_convnext_tiny_224_local_en.md @@ -0,0 +1,75 @@ +--- +layout: model +title: ConvNextForImageClassification - image_classifier_convnext_tiny_224_local +author: John Snow Labs +name: image_classifier_convnext_tiny_224_local +date: 2023-07-05 +tags: [convnext, en, engligh, image_classification, imagenet, convolution, open_source, tensorflow] +task: Image Classification +language: en +edition: Spark NLP 5.0.0 +spark_version: 3.0 +supported: true +engine: tensorflow +annotator: ConvNextForImageClassification +article_header: + type: cover +use_language_switcher: "Python-Scala-Java" +--- + +## Description + +Pretrained ConvNext model for Image Classification, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP. + +The ConvNeXT model was proposed in A ConvNet for the 2020s by Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, Saining Xie. + +## Predicted Entities + + + +{:.btn-box} + + +[Download](https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/models/image_classifier_convnext_tiny_224_local_en_5.0.0_3.0_1688564243397.zip){:.button.button-orange.button-orange-trans.arr.button-icon} +[Copy S3 URI](s3://auxdata.johnsnowlabs.com/public/models/image_classifier_convnext_tiny_224_local_en_5.0.0_3.0_1688564243397.zip){:.button.button-orange.button-orange-trans.button-icon.button-copy-s3} + +## How to use + + + +
+{% include programmingLanguageSelectScalaPythonNLU.html %} +```python +image_assembler = ImageAssembler()\ + .setInputCol("image")\ + .setOutputCol("image_assembler") + +imageClassifier = ConvNextForImageClassification.pretrained("image_classifier_convnext_tiny_224_local", "en")\ + .setInputCols("image_assembler")\ + .setOutputCol("class") + +pipeline = Pipeline(stages=[ + image_assembler, + imageClassifier, +]) + +pipelineModel = pipeline.fit(imageDF) + +pipelineDF = pipelineModel.transform(imageDF) +``` + +
+ +{:.model-param} +## Model Information + +{:.table-model} +|---|---| +|Model Name:|image_classifier_convnext_tiny_224_local| +|Compatibility:|Spark NLP 5.0.0+| +|License:|Open Source| +|Edition:|Official| +|Input Labels:|[image_assembler]| +|Output Labels:|[class]| +|Language:|en| +|Size:|107.6 MB| \ No newline at end of file