ConvNeXt V2
ConvNeXt V2 is an image classifier with global response normalization.
- 작업
- classification
- 설치
pip install libreyolo- 지원 티어
- 지원, v1.6.0부터 지원. 보조 학습 가능 모델입니다. CI 통과 상태를 유지하며 기능은 여건에 따라 추가됩니다.
- 라이선스
- 코드 MIT, 가중치 MIT code; CC-BY-NC-4.0 weights. 상업적 사용
Install
pip install "libreyolo"Predict
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.
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
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
| 작업 | ONNX | TorchScript | ExecuTorch | TensorRT | OpenVINO | Paddle | MNN | RKNN | ncnn | TFLite | CoreML | Core AI |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Classification | Classification 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: 지원하지 않음 |
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.pt | cc-by-nc-4.0 |
| LibreConvNeXtV2femto-cls.pt | cc-by-nc-4.0 |
| LibreConvNeXtV2pico-cls.pt | cc-by-nc-4.0 |
| LibreConvNeXtV2n-cls.pt | cc-by-nc-4.0 |
| LibreConvNeXtV2t-cls.pt | cc-by-nc-4.0 |
| LibreConvNeXtV2b-cls.pt | cc-by-nc-4.0 |
| LibreConvNeXtV2l-cls.pt | cc-by-nc-4.0 |
| LibreConvNeXtV2h-cls.pt | cc-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에 있는 저자의 인용 블록에서 복사했습니다.