chore: 调整过滤模式

This commit is contained in:
unanmed 2026-03-11 18:42:45 +08:00
parent f35d0b03af
commit a0faada62b
2 changed files with 10 additions and 10 deletions

View File

@ -255,10 +255,10 @@ const labelConfig: IAutoLabelConfig = {
}, },
allowedSize: [[13, 13]], allowedSize: [[13, 13]],
allowUselessBranch: true, allowUselessBranch: true,
maxWallDensityStd: 0.5, maxWallDensityStd: 0.23,
minEnemyRatio: 0.02, minEnemyRatio: 0.02,
maxEnemyRatio: 0.3, maxEnemyRatio: 0.3,
minWallRatio: 0.1, minWallRatio: 0.2,
maxWallRatio: 0.6, maxWallRatio: 0.6,
minResourceRatio: 0.02, minResourceRatio: 0.02,
maxResourceRatio: 0.3, maxResourceRatio: 0.3,
@ -270,12 +270,12 @@ const labelConfig: IAutoLabelConfig = {
maxEntryCount: 4, maxEntryCount: 4,
ignoreIssues: true, ignoreIssues: true,
customTowerFilter: info => { customTowerFilter: info => {
if (info.name !== 'Apeiria') { // if (info.name !== 'Apeiria') {
return false;
}
// if (info.color !== TowerColor.Blue && info.color !== TowerColor.Green) {
// return false; // return false;
// } // }
if (info.color !== TowerColor.Blue && info.color !== TowerColor.Green) {
return false;
}
if (info.people < 1000) { if (info.people < 1000) {
return false; return false;
} }
@ -306,9 +306,9 @@ const labelConfig: IAutoLabelConfig = {
if (ignoredFloor[floor.tower.name]?.includes(floor.mapId)) { if (ignoredFloor[floor.tower.name]?.includes(floor.mapId)) {
return false; return false;
} }
// if (floor.tower.name === 'Apeiria') { if (floor.tower.name === 'Apeiria') {
// return Math.random() < 0.2; return Math.random() < 0.2;
// } }
return true; return true;
} }
}; };

View File

@ -63,7 +63,7 @@ def convert_dataset_to_images(
if __name__ == "__main__": if __name__ == "__main__":
convert_dataset_to_images( convert_dataset_to_images(
json_path="data/result.json", # 数据集文件 json_path="data/result.json", # 数据集文件
tile_folder="tiles", # 贴图文件夹 tile_folder="tiles2", # 贴图文件夹
output_folder="map_images", # 输出文件夹 output_folder="map_images", # 输出文件夹
tile_size=32 # tile 尺寸 tile_size=32 # tile 尺寸
) )