ConvNeXt V2

ConvNeXt V2 is an image classifier with global response normalization.

작업
classification
설치
pip install libreyolo
지원 티어
지원, v1.6.0부터 지원. 보조 학습 가능 모델입니다. CI 통과 상태를 유지하며 기능은 여건에 따라 추가됩니다.
업스트림
Meta AI의 ConvNeXt V2, MIT code; CC-BY-NC-4.0 weights. 논문, 소스
라이선스
코드 MIT, 가중치 MIT code; CC-BY-NC-4.0 weights. 상업적 사용

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

작업ONNXTorchScriptExecuTorchTensorRTOpenVINOPaddleMNNRKNNncnnTFLiteCoreMLCore AI
ClassificationClassification to ONNX: 지원함Classification to TorchScript: 지원함Classification to ExecuTorch: 지원함Classification to TensorRT: 지원함Classification to OpenVINO: 지원함Classification to Paddle: 지원하지 않음Classification to MNN: 지원하지 않음Classification to RKNN: 지원하지 않음Classification to ncnn: 지원함Classification to TFLite: 지원하지 않음Classification to CoreML: 지원하지 않음Classification to Core AI: 지원하지 않음
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

파일가중치 라이선스
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

위의 모든 파일은 현재 LibreYOLO 조직에 있으며 처음 사용할 때 내려받습니다.

Licensing

내려받는 특정 가중치의 Hugging Face 저장소에서 라이선스를 확인하십시오. LibreYOLO 조직의 모든 체크포인트에는 라이선스가 있으며 한 계열 안에서도 항상 같지는 않습니다. 해당 저장소가 신뢰할 수 있는 기준입니다. 아래 요약은 이 페이지를 마지막으로 검증했을 때 적용된 내용을 설명합니다.

관련 라이선스에 관한 설명이며 법률 자문이 아닙니다. 상업적으로 중요한 사안이라면 라이선스를 직접 읽고 별도의 법률 자문을 받으십시오.

원작
ConvNeXt V2, Meta AI
업스트림 라이선스
MIT code; CC-BY-NC-4.0 weights
LibreYOLO 코드
MIT
가중치
MIT code; CC-BY-NC-4.0 weights, huggingface.co/LibreYOLO에 다시 게시됨
해석
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},
}

raw.githubusercontent.com/facebookresearch/ConvNeXt-V2/main/README.md에 있는 저자의 인용 블록에서 복사했습니다.

LibreYOLO v1.6.0에서 검증되었습니다. 이 페이지의 지원 표, 체크포인트, 벤치마크 수치는 출시된 라이브러리와 공개된 가중치에서 생성되며 수동으로 작성되지 않습니다.