def main(configfilename, tagfilename=None): config = parser.parse(configfilename) if tagfilename is not None: bboxes = io.utils.read_bbox_tag_filename(tagfilename) else: bboxes = None iterator = tc.create_chunk_edges_tasks( config["image"], config["tempoutput"], config["baseseg"], storagestr=config["storagestrs"][0], hashmax=config["nummergetasks"], storagedir=config["storagestrs"][1], volshape=config["volshape"], chunkshape=config["chunkshape"], startcoord=config["startcoord"], patchsz=config["patchshape"], normcloudpath=config["normcloudpath"], resolution=config["voxelres"], aggscratchpath=config["aggscratchpath"], aggchunksize=config["aggchunksize"], aggmaxmip=config["aggmaxmip"], aggstartcoord=config["startcoord"], bboxes=bboxes) tq = TaskQueue(config["queueurl"]) tq.insert_all(iterator)
def main(configfilename): config = parser.parse(configfilename) task = tc.create_merge_ccs_task( config["storagestrs"][0], config["szthresh"], config["maxfaceshape"]) tq = TaskQueue(config["queueurl"]) tq.insert_all([task])
def main(configfilename, tagfilename=None): config = parser.parse(configfilename) if tagfilename is not None: bboxes = io.utils.read_bbox_tag_filename(tagfilename) else: bboxes = None iterator = tc.create_fixsegids_tasks( storagestr=config["storagestrs"][0], hashmax=config["nummergetasks"], volshape=config["volshape"], chunkshape=config["chunkshape"], startcoord=config["startcoord"], aggscratchpath=config["aggscratchpath"], aggchunksize=config["aggchunksize"], aggmaxmip=config["aggmaxmip"], aggstartcoord=config["startcoord"], bboxes=bboxes) tq = TaskQueue(config["queueurl"]) tq.insert_all(iterator)