增加生成训练数据

This commit is contained in:
2026-04-16 13:11:05 +08:00
parent 987be5ad9b
commit b90f20c3b1
6 changed files with 527 additions and 9 deletions

View File

@ -20,7 +20,7 @@ from main import (
)
matplotlib.use('TkAgg')
#####用于提取背景滤纸的样本目的是在训练时加入滤纸的光谱以减少滤纸与ftpe的误判
def apply_background_and_optional_resample_for_samples(df, bg_spectrum, bil_path):
# 先做背景校正(自动识别以 wavelength_ 或 band_ 开头的光谱列,且长度不一致时尾部对齐)