làm mịn các điểm ảnh

This commit is contained in:
Victor Phan
2026-01-06 12:25:42 +07:00
parent 2b308ddb78
commit 612fe1bb88
4 changed files with 975 additions and 202 deletions
+14 -3
View File
@@ -507,6 +507,7 @@
<option value="svm">🎯 SVM (Chính xác, Chậm với dữ liệu lớn)</option>
<option value="cnn">🧠 CNN - Deep Learning (PyTorch, Tốt với ảnh vệ tinh, Hỗ trợ GPU)</option>
<option value="swin-unet">🌟 Swin-UNet (Transformer + U-Net, Độ chính xác cao, Hỗ trợ GPU)</option>
<option value="mobilenet-lraspp">📱 MobileNetV3 + LR-ASPP (Nhẹ, Nhanh, Semantic Segmentation, Hỗ trợ GPU)</option>
</select>
<div style="margin-top: 8px; padding: 10px; background: #e7f3ff; border-radius: 5px; font-size: 12px;">
<span id="modelTypeDesc" style="color: #1976d2;">
@@ -1399,7 +1400,8 @@
'decision_tree': '✓ Decision Tree: Đơn giản nhất, nhanh nhất, dễ hiểu, phù hợp để test nhanh',
'svm': '✓ SVM: Chính xác cao với dữ liệu nhỏ, chậm với dữ liệu lớn',
'cnn': '✓ CNN PyTorch: Mạnh nhất với ảnh vệ tinh, tự học features, tương thích GPU tốt, cần pip install torch',
'swin-unet': '✓ Swin-UNet: Kết hợp Transformer + U-Net, độ chính xác cao nhất, phù hợp dataset lớn, tốc độ training trung bình'
'swin-unet': '✓ Swin-UNet: Kết hợp Transformer + U-Net, độ chính xác cao nhất, phù hợp dataset lớn, tốc độ training trung bình',
'mobilenet-lraspp': '✓ MobileNetV3 + LR-ASPP: Kiến trúc nhẹ cho semantic segmentation, nhanh, hiệu quả, phù hợp edge devices, hỗ trợ GPU'
};
desc.textContent = descriptions[modelType];
@@ -1437,10 +1439,19 @@
document.querySelector('#learningRateGroup label').textContent = 'Learning Rate (mặc định: 0.0005):';
document.getElementById('learningRate').value = 0.0005;
useGpuGroup.style.display = ''; // Show GPU option for Swin-UNet
} else if (modelType === 'mobilenet-lraspp') {
// MobileNetV3 + LR-ASPP uses n_estimators as epochs and supports GPU
nEstimatorsGroup.style.display = '';
document.querySelector('#nEstimatorsGroup label').textContent = 'Epochs (số lần training):';
document.getElementById('nEstimators').value = 60;
learningRateGroup.style.display = ''; // Show learning rate for MobileNet
document.querySelector('#learningRateGroup label').textContent = 'Learning Rate (mặc định: 0.001):';
document.getElementById('learningRate').value = 0.001;
useGpuGroup.style.display = ''; // Show GPU option for MobileNet
}
// Reset n_estimators label for non-CNN/non-Swin-UNet
if (modelType !== 'cnn' && modelType !== 'swin-unet' && modelType !== 'decision_tree' && modelType !== 'svm') {
// Reset n_estimators label for non-CNN/non-Swin-UNet/non-MobileNet
if (modelType !== 'cnn' && modelType !== 'swin-unet' && modelType !== 'mobilenet-lraspp' && modelType !== 'decision_tree' && modelType !== 'svm') {
document.querySelector('#nEstimatorsGroup label').textContent = 'N Estimators:';
}
}