Merge pull request 'feat/dean/change_shard_folder' (#159) from feat/dean/change_shard_folder into develop
Reviewed-on: https://kamco.gitea.gs.dabeeo.com/dabeeo/kamco-dabeeo-backoffice/pulls/159
This commit is contained in:
@@ -67,6 +67,7 @@ management:
|
||||
|
||||
file:
|
||||
#sync-root-dir: D:/app/original-images/
|
||||
sync-root-dir: /app/original-images/
|
||||
# sync-root-dir: /app/original-images/
|
||||
sync-root-dir: /kamco-nfs/images/
|
||||
sync-tmp-dir: ${file.sync-root-dir}/tmp
|
||||
sync-file-extention: tfw,tif
|
||||
|
||||
97
src/main/resources/etc/AI_INFERENCE.http
Normal file
97
src/main/resources/etc/AI_INFERENCE.http
Normal file
@@ -0,0 +1,97 @@
|
||||
# create job
|
||||
|
||||
POST /jobs HTTP/1.1
|
||||
Host: 10.100.0.11:8000
|
||||
accept: application/json
|
||||
Content-Type: application/json
|
||||
Content-Length: 565
|
||||
|
||||
{
|
||||
"pred_requests_areas": {
|
||||
"input1_year": 2023,
|
||||
"input2_year": 2024,
|
||||
"input1_scene_path": "/kamco-nfs/requests/2023_local.geojson",
|
||||
"input2_scene_path": "/kamco-nfs/requests/2024_local.geojson"
|
||||
},
|
||||
"model_version": "v1-2-test",
|
||||
"cd_model_path": "/data/shared-dir/cd-checkpoints/v5/cdv5-model3/best_changed_fscore_epoch_11.pth",
|
||||
"cd_model_config": "/data/shared-dir/cd-checkpoints/v5/cdv5-model3/rvsa-base-and-large-unet-mae-kamco.py",
|
||||
"cls_model_path": "",
|
||||
"cls_model_version": "v1-2-test",
|
||||
"cd_model_type": "G1",
|
||||
"priority": 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
//G1
|
||||
//{
|
||||
// "pred_requests_areas": {
|
||||
// "input1_year": "2022",
|
||||
// "input2_year": "2023",
|
||||
// "areas": ["34602060", "35615072", "35813026"]
|
||||
// },
|
||||
// "model_version": "v1-2-test",
|
||||
// "cd_model_path": "/data/shared-dir/cd-checkpoints/sample-checkpoints/G1/best_changed_fscore_epoch_53.pth",
|
||||
z// "cd_model_path": "/kamco-nfs/ckpt/cd-checkpoints/sample-checkpoints/G1/best_changed_fscore_epoch_53.pth",
|
||||
// "cd_model_config": "/data/shared-dir/cd-checkpoints/sample-checkpoints/G1/rvsa-base-and-large-unet-mae-kamco.py",
|
||||
// "cls_model_path": "",
|
||||
// "cls_model_version": "v1-2-test",
|
||||
// "cd_model_type": "G1",
|
||||
// "priority": 0
|
||||
//}
|
||||
|
||||
//G2:
|
||||
//{
|
||||
//"pred_requests_areas": {
|
||||
//"input1_year": "2022",
|
||||
//"input2_year": "2023",
|
||||
//"areas": ["34602060", "35615072", "35813026"]
|
||||
//},
|
||||
//"model_version": "v1-2-test",
|
||||
//"cd_model_path": "/data/shared-dir/cd-checkpoints/sample-checkpoints/G2/best_changed_fscore_epoch_40.pth",
|
||||
//"cd_model_config": "/data/shared-dir/cd-checkpoints/sample-checkpoints/G2/rvsa-base-and-large-unet-mae-kamco.py",
|
||||
//"cls_model_path": "",
|
||||
//"cls_model_version": "v1-2-test",
|
||||
//"cd_model_type": "G2",
|
||||
//"priority": 0
|
||||
//}
|
||||
//
|
||||
//G3:
|
||||
//{
|
||||
//"pred_requests_areas": {
|
||||
//"input1_year": "2022",
|
||||
//"input2_year": "2023",
|
||||
//"areas": ["34602060", "35615072", "35813026"]
|
||||
//},
|
||||
//"model_version": "v1-2-test",
|
||||
//"cd_model_path": "/data/shared-dir/cd-checkpoints/sample-checkpoints/G3/best_changed_fscore_epoch_13.pth",
|
||||
//"cd_model_config": "/data/shared-dir/cd-checkpoints/sample-checkpoints/G3/rvsa-base-and-large-unet-mae-kamco.py",
|
||||
//"cls_model_path": "",
|
||||
//"cls_model_version": "v1-2-test",
|
||||
//"cd_model_type": "G3",
|
||||
//"priority": 0
|
||||
//}
|
||||
|
||||
//2. GET BATCH
|
||||
|
||||
GET /batches/188 HTTP/1.1
|
||||
Host: 10.100.0.11: 8000
|
||||
accept: application/json
|
||||
Content-Type: application/json
|
||||
|
||||
//3-1. get Detail QUEUED
|
||||
GET /jobs?status=QUEUED&limit=50 HTTP/1.1
|
||||
Host: 10.100.0.11: 8000
|
||||
//3-2. get Detail PROCESSING
|
||||
GET /jobs?status=PROCESSING&limit=50 HTTP/1.1
|
||||
Host: 10.100.0.11: 8000
|
||||
//3-3. get Detail PROCESSING
|
||||
GET /jobs?status=COMPLETED&limit=50 HTTP/1.1
|
||||
Host: 10.100.0.11: 8000
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user