Compare commits

...

2 Commits

Author SHA1 Message Date
0f13afcbb5 yoooger 2025-07-10 10:04:45 +08:00
7f85359c37 yoooger 2025-07-10 09:57:01 +08:00
8 changed files with 8 additions and 13 deletions

View File

@ -1,5 +0,0 @@
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/img2.jpg"
],
"yaml_name": "112.44.103.230",
"yaml_name": "config",
"bucket_name": "300bdf2b-a150-406e-be63-d28bd29b409f",
"bucket_directory": "2025/seg"
"model_path": "deeplabv3plus_best.pth"

View File

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

View File

@ -104,7 +104,7 @@ def generate_tiles_from_tif_cli(
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 = "112.44.103.230") -> dict:
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:
# 创建唯一任务ID
task_id = str(uuid.uuid4())
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__':
urls = [
"http://171.221.233.49:9000/300bdf2b-a150-406e-be63-d28bd29b409f/qiepian/data7/data3/15/25807/19269.png"]
yaml_name = "112.44.103.230"
yaml_name = "config"
bucket_name = "300bdf2b-a150-406e-be63-d28bd29b409f"
bucket_directory = "2025/seg"
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__':
# 初始化 MinIO 客户端
client = Minio(
endpoint="112.44.103.230:9000",
endpoint="222.212.85.86",
access_key="adminjdskfj",
secret_key="123456ksldjfal@Y",
secure=False
)
# 示例:通过完整 URL 下载文件
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"
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"
bucket_name, object_name = parse_minio_url(full_url)
downFile(client, object_name, bucket_name)

View File

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

View File

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