Added weights file, configuration file, and a demo README.md
Browse filesFiles changed (3)
- README.md+75
- basic_config.yamlAdded+42
- best.ptAdded+3
123---license: mit---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778---language:- en- rutags:- computer-vision- object-detection- yolov8- welding- ndt- defect-detectionlicense: mitdatasets:- synthetic-welding-defectsmetrics:- precision- recall- mAP---# XVL: X-Ray Vision Lab - Welding Defect DetectorYOLOv8-based model for automated detection of welding defects in X-ray images.## Model Details- **Architecture**: YOLOv8n (custom)- **Input Size**: 512x512- **Classes**: 5 defect types- **Training Data**: Synthetic X-ray images (8000+ samples)- **Validation Data**: Real industrial X-ray scans (200+)## Performance| Metric | Value | Epoch ||------------|--------|-------|| Precision | 95.6% | 37 || Recall | 88.9% | 39 || mAP@50 | 93.3% | 39 || mAP@50-95 | 78.8% | 37 |## Usage### With PyTorch```pythonimport torchfrom models.yolo_custom import load_modelmodel = load_model(weights="best.pt",config="config.yaml")With XVL Projectbashgit clone https://github.com/your-username/XVL.gitpython scripts/download_weights.pypython src/run.pyDefect ClassesCracksPorosityLack of penetrationSlag inclusionsUndercutTraining ConfigurationSee config.yaml for full details.CitationIf you use this model, please reference:@software{xvl2024,title={XVL: X-Ray Vision Lab},author={Your Name},year={2024},url={https://github.com/your-username/XVL}}
123456789101112131415161718192021222324252627282930313233343536373839404142# configs.yaml
training:
img_size: 512
model_name: "yolov8s.pt"
epochs: 150
batch_size: 48
learning_rate: 0.00005
num_folds: 5
data:
samples_per_epoch: null
val_samples: null
class_weights: null
class_names:
- "incomplete_fusion"
- "crack"
- "single_pore"
- "cluster_pores"
- "empty"
# Параметры обучения YOLO
yolo_args:
save: true
save_period: 10
exist_ok: true
pretrained: true
optimizer: "AdamW"
weight_decay: 0.005
dropout: 0.1
mixup: 0.05
cutmix: 0.05
warmup_epochs: 20
cos_lr: true
label_smoothing: 0.1
patience: 30
verbose: true
# Другие параметры YOLO могут быть добавлены здесь
paths:
project_dir: "models"
log_dir: "logs/training"
metrics_dir: "metrics"123version https://git-lfs.github.com/spec/v1oid sha256:72f3c76d2fe2c4fe6fbfa65af9de65da528bef33a46967e4f20b0c1cc78ccc84size 51997906README.md+75
basic_config.yamlAdded+42
best.ptAdded+3