config.yaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # 森林多模态灾害监测系统配置文件
  2. # 应用基础配置
  3. app_name: "森瞳森林多模态灾害监测系统"
  4. theme: "dark"
  5. update_interval: 60
  6. baidu_map_key: "F47f0642o1uGqSGnm3T6JLxHHLOjnx2T"
  7. baidu_map_domain: "localhost"
  8. # 模型配置
  9. model_size: s # YOLOv5模型大小:n, s, m, l, x
  10. num_classes_fire: 2 # 火灾类别数(火焰、烟雾)
  11. num_classes_animal: 5 # 动物类别数(可根据保护区内具体动物调整)
  12. num_classes_landslide: 3 # 地质灾害类别数(滑坡、泥石流、山体崩塌)
  13. conf_threshold: 0.25 # 检测置信度阈值
  14. iou_threshold: 0.45 # NMS IOU阈值
  15. # 数据配置
  16. image_size: 640 # 输入图像大小
  17. batch_size: 16 # 批次大小
  18. data_augmentation: true # 是否使用数据增强
  19. # 训练配置
  20. learning_rate: 0.01 # 学习率
  21. weight_decay: 0.0005 # 权重衰减
  22. epochs: 100 # 训练轮数
  23. save_interval: 10 # 模型保存间隔
  24. # 系统配置
  25. device: cuda:0 # 设备,cuda:0或cpu
  26. num_workers: 4 # 数据加载线程数
  27. weights_path: weights # 权重保存路径
  28. logs_path: logs # 日志保存路径
  29. # 监测区域配置
  30. monitor_regions:
  31. - name: "北京密云"
  32. latitude: 40.3764
  33. longitude: 116.8301
  34. radius: 5
  35. priority: high
  36. - name: "杭州西湖"
  37. latitude: 30.2650
  38. longitude: 120.1331
  39. radius: 3
  40. priority: medium
  41. - name: "四川卧龙"
  42. latitude: 31.0500
  43. longitude: 103.1500
  44. radius: 10
  45. priority: high
  46. # GIS集成配置
  47. gis_api_key: "" # GIS API密钥
  48. map_center: [39.916527, 116.397128]
  49. map_zoom: 12
  50. # UI配置
  51. dark_mode: true # 是否使用暗色模式
  52. language: zh_CN # 语言设置
  53. auto_refresh: 60 # 自动刷新间隔(秒)
  54. # 告警配置
  55. alert_threshold: 0.75 # 告警阈值
  56. alert_methods: [ui, sound] # 告警方式:ui界面、声音
  57. alert_interval: 30 # 告警间隔(秒)
  58. random_alert: # 随机告警配置
  59. enabled: false # 是否启用随机告警
  60. interval: 5 # 随机告警检查间隔(秒)
  61. probability: 0.3 # 生成告警的概率(0-1)
  62. types: # 可能的告警类型
  63. - fire # 火灾
  64. - animal # 野生动物
  65. - landslide # 山体滑坡
  66. - pest # 病虫害
  67. locations: # 可能的告警位置
  68. - 北部山区
  69. - 南部林区
  70. - 东部山脊
  71. - 西部谷地
  72. - 中央林场