From a0faada62b201bdb778e49d024d6fbe26ec42724 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Wed, 11 Mar 2026 18:42:45 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/src/auto.ts | 18 +++++++++--------- shared/visual.py | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/data/src/auto.ts b/data/src/auto.ts index 1c111a1..28d32e2 100644 --- a/data/src/auto.ts +++ b/data/src/auto.ts @@ -255,10 +255,10 @@ const labelConfig: IAutoLabelConfig = { }, allowedSize: [[13, 13]], allowUselessBranch: true, - maxWallDensityStd: 0.5, + maxWallDensityStd: 0.23, minEnemyRatio: 0.02, maxEnemyRatio: 0.3, - minWallRatio: 0.1, + minWallRatio: 0.2, maxWallRatio: 0.6, minResourceRatio: 0.02, maxResourceRatio: 0.3, @@ -270,12 +270,12 @@ const labelConfig: IAutoLabelConfig = { maxEntryCount: 4, ignoreIssues: true, customTowerFilter: info => { - if (info.name !== 'Apeiria') { - return false; - } - // if (info.color !== TowerColor.Blue && info.color !== TowerColor.Green) { + // if (info.name !== 'Apeiria') { // return false; // } + if (info.color !== TowerColor.Blue && info.color !== TowerColor.Green) { + return false; + } if (info.people < 1000) { return false; } @@ -306,9 +306,9 @@ const labelConfig: IAutoLabelConfig = { if (ignoredFloor[floor.tower.name]?.includes(floor.mapId)) { return false; } - // if (floor.tower.name === 'Apeiria') { - // return Math.random() < 0.2; - // } + if (floor.tower.name === 'Apeiria') { + return Math.random() < 0.2; + } return true; } }; diff --git a/shared/visual.py b/shared/visual.py index 0db6f1e..a7233e5 100644 --- a/shared/visual.py +++ b/shared/visual.py @@ -63,7 +63,7 @@ def convert_dataset_to_images( if __name__ == "__main__": convert_dataset_to_images( json_path="data/result.json", # 数据集文件 - tile_folder="tiles", # 贴图文件夹 + tile_folder="tiles2", # 贴图文件夹 output_folder="map_images", # 输出文件夹 tile_size=32 # tile 尺寸 ) \ No newline at end of file