ConvNeXt V2

ConvNeXt V2 is an image classifier with global response normalization.

Tareas
classification
Instalación
pip install libreyolo
Nivel de compatibilidad
Compatible, desde v1.6.0. Modelos entrenables de apoyo: se mantienen operativos en CI y reciben funciones cuando surge la oportunidad.
Proyecto original
ConvNeXt V2 de Meta AI, MIT code; CC-BY-NC-4.0 weights. Artículo, fuente
Licencias
Código MIT, pesos MIT code; CC-BY-NC-4.0 weights. Uso comercial

Install

bash
pip install "libreyolo"

Predict

Python
from libreyolo import LibreYOLO, SAMPLE_IMAGE model = LibreYOLO("LibreConvNeXtV2atto-cls.pt", device="cpu")result = model(SAMPLE_IMAGE)print(result.probs)

The eight sizes run classification at 224 pixels. Official pretrained weights are CC-BY-NC-4.0.

Train

Training rebuilds the classification head for an ImageFolder dataset. cls_pw accepts values from 0 to 1 and defaults to 0. class_weights=True selects the alternative sample-normalized weighting; it cannot combine with cls_pw>0. Weighting settings must match when resuming.

Dataset setup describes the required training data.

Python
from libreyolo import LibreYOLO model = LibreYOLO("LibreConvNeXtV2atto-cls.pt", device="cpu")# "smoke10" auto-downloads; for your own data, pass a folder with train/ and val/ class subfolders.model.train(data="smoke10", epochs=1, device="cpu", workers=0)

Validate

Python
from libreyolo import LibreYOLO model = LibreYOLO("LibreConvNeXtV2atto-cls.pt", device="cpu")metrics = model.val(data="smoke10", workers=0)print(metrics)

Use the dataset format for this task. Validation explains the dataset requirements and returned metrics.

Export

TareaONNXTorchScriptExecuTorchTensorRTOpenVINOPaddleMNNRKNNncnnTFLiteCoreMLCore AI
ClassificationClassification to ONNX: compatibleClassification to TorchScript: compatibleClassification to ExecuTorch: compatibleClassification to TensorRT: compatibleClassification to OpenVINO: compatibleClassification to Paddle: no compatibleClassification to MNN: no compatibleClassification to RKNN: no compatibleClassification to ncnn: compatibleClassification to TFLite: no compatibleClassification to CoreML: no compatibleClassification to Core AI: no compatible
Python
from libreyolo import LibreYOLO, SAMPLE_IMAGE model = LibreYOLO("LibreConvNeXtV2atto-cls.pt", device="cpu")model.export(format="onnx")

Export setup lists format dependencies and loading exported artifacts.

Checkpoints

ArchivoLicencia de los pesos
Classification
LibreConvNeXtV2atto-cls.ptcc-by-nc-4.0
LibreConvNeXtV2femto-cls.ptcc-by-nc-4.0
LibreConvNeXtV2pico-cls.ptcc-by-nc-4.0
LibreConvNeXtV2n-cls.ptcc-by-nc-4.0
LibreConvNeXtV2t-cls.ptcc-by-nc-4.0
LibreConvNeXtV2b-cls.ptcc-by-nc-4.0
LibreConvNeXtV2l-cls.ptcc-by-nc-4.0
LibreConvNeXtV2h-cls.ptcc-by-nc-4.0

Todos los archivos anteriores existen hoy en la organización de LibreYOLO y se descargan la primera vez que se usan.

Licensing

Comprueba la licencia en el repositorio de Hugging Face de los pesos concretos que descargues. Cada checkpoint de la organización de LibreYOLO incluye una, y no siempre es la misma en toda una familia. Ese repositorio es la fuente autorizada; el resumen siguiente describe qué se aplicaba cuando se verificó esta página por última vez.

Esta es una descripción de las licencias implicadas, no asesoramiento legal. Si la respuesta es importante a nivel comercial, lee las licencias y busca tu propio asesoramiento.

Trabajo original
ConvNeXt V2, Meta AI
Licencia del proyecto original
MIT code; CC-BY-NC-4.0 weights
Fuente del proyecto original
github.com/facebookresearch/ConvNeXt-V2
Código de LibreYOLO
MIT
Pesos
MIT code; CC-BY-NC-4.0 weights, republicados en huggingface.co/LibreYOLO
Interpretación
The source code is MIT. Official pretrained weights are CC-BY-NC-4.0 and exclude commercial use.

Citation

@article{Woo2023ConvNeXtV2,
  title={ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoders},
  author={Sanghyun Woo, Shoubhik Debnath, Ronghang Hu, Xinlei Chen, Zhuang Liu, In So Kweon and Saining Xie},
  year={2023},
  journal={arXiv preprint arXiv:2301.00808},
}

Copiado del bloque de cita de los autores en raw.githubusercontent.com/facebookresearch/ConvNeXt-V2/main/README.md.

Verificado con LibreYOLO v1.6.0. Las tablas de compatibilidad, los checkpoints y las cifras de rendimiento de esta página se generan a partir de la biblioteca publicada y los pesos publicados; no se escriben a mano.