Compare commits

..

No commits in common. "0f13afcbb566d29fa9dcdfc7191d1a8157325836" and "cf6cff70c5afd328099ca43b9167deff29458047" have entirely different histories.

8 changed files with 13 additions and 8 deletions

View File

@ -0,0 +1,5 @@
minio:
endpoint: "222.212.85.86:9000"
access_key: "adminjdskfj"
secret_key: "123456ksldjfal@Y"
secure: false

View File

@ -105,7 +105,7 @@ async def process_handler(request):
"http://example.com/img1.jpg", "http://example.com/img1.jpg",
"http://example.com/img2.jpg" "http://example.com/img2.jpg"
], ],
"yaml_name": "config", "yaml_name": "112.44.103.230",
"bucket_name": "300bdf2b-a150-406e-be63-d28bd29b409f", "bucket_name": "300bdf2b-a150-406e-be63-d28bd29b409f",
"bucket_directory": "2025/seg" "bucket_directory": "2025/seg"
"model_path": "deeplabv3plus_best.pth" "model_path": "deeplabv3plus_best.pth"

View File

@ -6,7 +6,7 @@ minio:
web: "http://222.212.85.86" web: "http://222.212.85.86"
sql: sql:
host: '222.212.85.86' host: '47.108.71.9'
port: 5432 port: 5432
dbname: 'postgres' dbname: 'postgres'
user: 'postgres' user: 'postgres'

View File

@ -104,7 +104,7 @@ def generate_tiles_from_tif_cli(
print(f"瓦片生成成功,元数据已保存到: {json_path}") print(f"瓦片生成成功,元数据已保存到: {json_path}")
# 主处理函数 # 主处理函数
async def process_tiling(tif_url: str = None, prj_url: str = None, zoom_levels: str = "1-18", bucket: str = "300",config: str = "222.212.85.86") -> dict: async def process_tiling(tif_url: str = None, prj_url: str = None, zoom_levels: str = "1-18", bucket: str = "300",config: str = "112.44.103.230") -> dict:
# 创建唯一任务ID # 创建唯一任务ID
task_id = str(uuid.uuid4()) task_id = str(uuid.uuid4())
temp_dir = tempfile.mkdtemp() temp_dir = tempfile.mkdtemp()

View File

@ -105,7 +105,7 @@ def map_process_images(urls, yaml_name, bucket_name, bucket_directory,uav_model_
if __name__ == '__main__': if __name__ == '__main__':
urls = [ urls = [
"http://171.221.233.49:9000/300bdf2b-a150-406e-be63-d28bd29b409f/qiepian/data7/data3/15/25807/19269.png"] "http://171.221.233.49:9000/300bdf2b-a150-406e-be63-d28bd29b409f/qiepian/data7/data3/15/25807/19269.png"]
yaml_name = "config" yaml_name = "112.44.103.230"
bucket_name = "300bdf2b-a150-406e-be63-d28bd29b409f" bucket_name = "300bdf2b-a150-406e-be63-d28bd29b409f"
bucket_directory = "2025/seg" bucket_directory = "2025/seg"
uav_model_path = "D:/work/AI_Python/Ai_tottle/map/checkpoints/deeplabv3plus_best.pth" uav_model_path = "D:/work/AI_Python/Ai_tottle/map/checkpoints/deeplabv3plus_best.pth"

View File

@ -145,14 +145,14 @@ def download_file_url(url: str, save_path: str):
if __name__ == '__main__': if __name__ == '__main__':
# 初始化 MinIO 客户端 # 初始化 MinIO 客户端
client = Minio( client = Minio(
endpoint="222.212.85.86", endpoint="112.44.103.230:9000",
access_key="adminjdskfj", access_key="adminjdskfj",
secret_key="123456ksldjfal@Y", secret_key="123456ksldjfal@Y",
secure=False secure=False
) )
# 示例:通过完整 URL 下载文件 # 示例:通过完整 URL 下载文件
full_url = "http://222.212.85.86:9000/300bdf2b-a150-406e-be63-d28bd29b409f/media/86961d3a-8790-4bc0-bfc6-dc45a8e4b9bd/DJI_202504291707_001_86961d3a-8790-4bc0-bfc6-dc45a8e4b9bd/DJI_20250429170933_0001_V.jpeg" full_url = "http://112.44.103.230:9000/300bdf2b-a150-406e-be63-d28bd29b409f/media/86961d3a-8790-4bc0-bfc6-dc45a8e4b9bd/DJI_202504291707_001_86961d3a-8790-4bc0-bfc6-dc45a8e4b9bd/DJI_20250429170933_0001_V.jpeg"
bucket_name, object_name = parse_minio_url(full_url) bucket_name, object_name = parse_minio_url(full_url)
downFile(client, object_name, bucket_name) downFile(client, object_name, bucket_name)

View File

@ -203,7 +203,7 @@ def sql_connect(target_id, endpoint, port, dbname, user, password):
if conn: if conn:
conn.close() conn.close()
################################################################# 坐从 MinIO 获取 JSON 对象内容 ################################################## ################################################################# 坐从 MinIO 获取 JSON 对象内容 ##################################################
def get_minio_json(bucket_name, object_path, yaml_name='config'): def get_minio_json(bucket_name, object_path, yaml_name='112.44.103.230'):
""" """
MinIO 获取指定对象并解析为 JSON MinIO 获取指定对象并解析为 JSON
""" """

View File

@ -354,7 +354,7 @@ def auto_train(
if __name__ == '__main__': if __name__ == '__main__':
auto_train( auto_train(
db_host='222.212.85.86', db_host='112.44.103.230',
db_database='your_database_name', db_database='your_database_name',
db_user='postgres', db_user='postgres',
db_password='postgres', db_password='postgres',