-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
348 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// | ||
// Handy variables | ||
#SRC_PATH: "gs://dacey-human-retina-001-segmentation/240320-retina-finetune-embd24-v1-x1/20240408/seg_agg25" | ||
#DST_PATH: "gs://dodam_exp/seg_medcutoutlod" | ||
#BBOX: { | ||
"@type": "BBox3D.from_coords" | ||
start_coord: [1024 * 0, 1024 * 0, 1995] | ||
end_coord: [1024 * 10, 1024 * 10, 1995 + 128] | ||
resolution: [20, 20, 50] | ||
} | ||
|
||
// Execution parameters | ||
"@type": "mazepa.execute_on_gcp_with_sqs" | ||
worker_image: "us.gcr.io/zetta-research/zetta_utils:sergiy_all_p310_x214" | ||
worker_cluster_name: "zutils-x3" | ||
worker_cluster_region: "us-east1" | ||
worker_cluster_project: "zetta-research" | ||
worker_resources: { | ||
memory: "18560Mi" | ||
//"nvidia.com/gpu": "1" | ||
} | ||
worker_replicas: 10 | ||
|
||
local_test: true // set to `false` execute remotely | ||
|
||
target: { | ||
// We're applying subchunkable processing flow, | ||
"@type": "build_subchunkable_apply_flow" | ||
bbox: #BBOX | ||
|
||
// What resolution is our destination? | ||
dst_resolution: [20, 20, 50] | ||
|
||
// How do we chunk/crop/blend? | ||
processing_chunk_sizes: [[2 * 1024, 2 * 1024, 64]] | ||
processing_crop_pads: [[1, 0, 0]] | ||
processing_blend_pads: [[0, 0, 0]] | ||
skip_intermediaries: true | ||
|
||
// We want to expand the input bbox to be evenly divisible | ||
// by chunk size | ||
expand_bbox_processing: true | ||
|
||
// Specification for the operation we're performing | ||
fn: { | ||
"@type": "lambda" | ||
lambda_str: "lambda src: src" | ||
} | ||
// Specification for the inputs to the operation | ||
op_kwargs: { | ||
src: { | ||
"@type": "build_cv_layer" | ||
path: #SRC_PATH | ||
} | ||
} | ||
|
||
// Specification of the output layer. Subchunkable expects | ||
// a single output layer. If multiple output layers are | ||
// needed, refer to advanced examples. | ||
dst: { | ||
"@type": "build_cv_layer" | ||
path: #DST_PATH | ||
info_reference_path: #SRC_PATH | ||
//on_info_exists: "overwrite" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
// | ||
// Handy variables | ||
#SEG_PATH: "gs://dodam_exp/seg_medcutout" | ||
#MESH_DIR: "mesh_mip_1_err_40" | ||
#BBOX: { | ||
"@type": "BBox3D.from_coords" | ||
start_coord: [1024 * 0, 1024 * 0, 1995] | ||
end_coord: [1024 * 10, 1024 * 10, 1995 + 128] | ||
resolution: [20, 20, 50] | ||
} | ||
|
||
#SEG_DB_PATH: "dodam-med-seg-512-512-128v2" | ||
#FRAG_DB_PATH: "dodam-med-frag-512-512-128v2" | ||
#PROJECT: "zetta-research" | ||
|
||
|
||
// Execution parameters | ||
"@type": "mazepa.execute_on_gcp_with_sqs" | ||
worker_image: "us-east1-docker.pkg.dev/zetta-research/zutils/zetta_utils:dodam-meshing-14" | ||
worker_cluster_name: "zutils-x3" | ||
worker_cluster_region: "us-east1" | ||
worker_cluster_project: "zetta-research" | ||
worker_resources: { | ||
memory: "18560Mi" | ||
//"nvidia.com/gpu": "1" | ||
} | ||
worker_replicas: 100 | ||
num_procs: 1 | ||
semaphores_spec: { | ||
"read": 8 | ||
"write": 8 | ||
"cuda": 0 | ||
"cpu": 8 | ||
} | ||
local_test: true// set to `false` execute remotely | ||
debug: true// set to `false` execute remotely | ||
|
||
target: { | ||
// We're applying subchunkable processing flow, | ||
"@type": "build_subchunkable_apply_flow" | ||
bbox: #BBOX | ||
|
||
// What resolution is our destination? | ||
dst_resolution: [20, 20, 50] | ||
|
||
// How do we chunk/crop/blend? | ||
processing_chunk_sizes: [[512, 512, 128]] | ||
processing_crop_pads: [[0, 0, 0]] | ||
processing_blend_pads: [[0, 0, 0]] | ||
skip_intermediaries: true | ||
|
||
// We want to expand the input bbox to be evenly divisible | ||
// by chunk size | ||
expand_bbox_processing: true | ||
|
||
// Specification for the operation we're performing | ||
op: { | ||
"@type": "MakeMeshFragsOperation" | ||
} | ||
// Specification for the inputs to the operation | ||
op_kwargs: { | ||
segmentation: { | ||
"@type": "build_cv_layer" | ||
path: #SEG_PATH | ||
}, | ||
seg_db: { | ||
"@type": "build_datastore_layer" | ||
namespace: #SEG_DB_PATH | ||
project: #PROJECT | ||
}, | ||
frag_db: { | ||
"@type": "build_datastore_layer" | ||
namespace: #FRAG_DB_PATH | ||
project: #PROJECT | ||
}, | ||
mesh_dir: #MESH_DIR, | ||
num_splits: [2,2,1] | ||
// num_splits: [1,1,1] | ||
} | ||
|
||
// Specification of the output layer. Subchunkable expects | ||
// a single output layer. If multiple output layers are | ||
// needed, refer to advanced examples. | ||
dst: null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// | ||
// Handy variables | ||
#SEG_PATH: "gs://dodam_exp/seg_medcutout" | ||
#MESH_DIR: "mesh_mip_1_err_40" | ||
#BBOX: { | ||
"@type": "BBox3D.from_coords" | ||
start_coord: [1024 * 0, 1024 * 0, 1995] | ||
end_coord: [1024 * 10, 1024 * 10, 1995 + 128] | ||
resolution: [20, 20, 50] | ||
} | ||
|
||
#SEG_DB_PATH: "dodam-med-seg-512-512-128v2" | ||
#FRAG_DB_PATH: "dodam-med-frag-512-512-128v2" | ||
#PROJECT: "zetta-research" | ||
|
||
|
||
// Execution parameters | ||
"@type": "mazepa.execute_on_gcp_with_sqs" | ||
worker_image: "us-east1-docker.pkg.dev/zetta-research/zutils/zetta_utils:dodam-meshing-15" | ||
worker_cluster_name: "zutils-x3" | ||
worker_cluster_region: "us-east1" | ||
worker_cluster_project: "zetta-research" | ||
worker_resources: { | ||
memory: "18560Mi" | ||
//"nvidia.com/gpu": "1" | ||
} | ||
worker_replicas: 100 | ||
num_procs: 1 | ||
semaphores_spec: { | ||
"read": 8 | ||
"write": 8 | ||
"cuda": 0 | ||
"cpu": 8 | ||
} | ||
local_test: true // set to `false` execute remotely | ||
debug: true // set to `false` execute remotely | ||
do_dryrun_estimation: false | ||
|
||
target: { | ||
"@type": "build_make_shards_flow" | ||
segmentation_path: #SEG_PATH | ||
seg_db: { | ||
"@type": "build_datastore_layer" | ||
namespace: #SEG_DB_PATH | ||
project: #PROJECT | ||
} | ||
frag_db: { | ||
"@type": "build_datastore_layer" | ||
namespace: #FRAG_DB_PATH | ||
project: #PROJECT | ||
} | ||
num_lods: 5 | ||
min_shards: 48 | ||
num_shard_no_tasks: 1024 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.