Ejemplo n.º 1
0
            shell=True)
    elif args.reset == "no":
        pass
    PIPELINE = make_human_rope_pipeline(downsample=5)

elif args.pipeline == "human_towel":
    PIPELINE = make_towel_pipeline(downsample=10)

    if args.reset == "full":
        subprocess.check_call("rm -r *", shell=True)
    elif args.reset == "partial":
        subprocess.check_call(
            "rm -rf kinect labels rope_pts towel_pts rope_init rope_model towel_model once/table_corners.txt once/init_rope.txt logs/*",
            shell=True)
    elif args.reset == "no":
        pass

if args.target is not None: assert args.target in PIPELINE.get_items()
comm.initComm()

TARGET_PIPELINE = PIPELINE.restrict_to_target(
    args.target) if args.target is not None else PIPELINE

if args.order == "series":
    pipeline.execute_series(TARGET_PIPELINE)
elif args.order == "parallel":
    pipeline.execute_parallel(TARGET_PIPELINE,
                              lifetime=10,
                              max_lag=5,
                              noclean=args.noclean)
Ejemplo n.º 2
0
        else: exit(0)
    elif args.reset == "partial":
        subprocess.check_call("rm -rf kinect labels rope_pts  rope_init rope_model logs/* once/table_corners.txt",shell=True)
    elif args.reset == "no":
        pass
    PIPELINE = make_human_rope_pipeline(downsample=5)

    
elif args.pipeline == "human_towel":
    PIPELINE = make_towel_pipeline(downsample = 10)


    if args.reset == "full":
        subprocess.check_call("rm -r *", shell=True)
    elif args.reset == "partial":
        subprocess.check_call("rm -rf kinect labels rope_pts towel_pts rope_init rope_model towel_model once/table_corners.txt once/init_rope.txt logs/*",shell=True)
    elif args.reset == "no":
        pass



if args.target is not None: assert args.target in PIPELINE.get_items()
comm.initComm()

TARGET_PIPELINE = PIPELINE.restrict_to_target(args.target) if args.target is not None else PIPELINE

if args.order == "series":
    pipeline.execute_series(TARGET_PIPELINE)        
elif args.order == "parallel":
    pipeline.execute_parallel(TARGET_PIPELINE, lifetime = 10, max_lag = 5, noclean = args.noclean)
Ejemplo n.º 3
0
from comm.vision_pipeline import PIPELINE
from comm import pipeline
from comm import comm
import os

comm.initComm()
print comm.DATA_ROOT
#
#comm.resetDataDir()

os.chdir(comm.DATA_ROOT)
import subprocess
subprocess.check_call("rm -rf kinect labels images rope_pts towel_pts human_rope human_towel once/init_rope.txt",shell=True)

#pipeline.execute_series(PIPELINE, False)
pipeline.execute_parallel(PIPELINE.restrict_to_target("human_towel"), lifetime = 10, max_lag = 5)
Ejemplo n.º 4
0
from comm.vision_pipeline import make_vision_pipeline
from comm import pipeline
from comm import comm
import os

comm.initComm()
os.chdir(comm.DATA_ROOT)
PIPELINE = make_vision_pipeline(downsample=args.downsample, classifier=args.classifier, init_period=args.init_period)
assert args.target in PIPELINE.get_items()

LIFETIME = 9999 if args.no_cleanup else 10


import subprocess

if args.reset == "full":
    comm.resetDataDir()
elif args.reset == "partial":
    subprocess.check_call(
        "rm -rf kinect labels images rope_pts towel_pts rope_init rope_model towel_model once/init_rope.txt", shell=True
    )
elif args.reset == "allbutkinect":
    subprocess.check_call(
        "rm -rf labels images rope_pts towel_pts rope_init rope_model towel_model once/init_rope.txt", shell=True
    )
if args.order == "series":
    pipeline.execute_series(PIPELINE.restrict_to_target(args.target))
elif args.order == "parallel":
    pipeline.execute_parallel(PIPELINE.restrict_to_target(args.target), lifetime=LIFETIME, max_lag=5)
Ejemplo n.º 5
0
from comm.vision_pipeline import PIPELINE
from comm import pipeline
from comm import comm
import os

comm.initComm()
print comm.DATA_ROOT
#
#comm.resetDataDir()

os.chdir(comm.DATA_ROOT)
import subprocess
subprocess.check_call(
    "rm -rf kinect labels images rope_pts towel_pts human_rope human_towel once/init_rope.txt",
    shell=True)

#pipeline.execute_series(PIPELINE, False)
pipeline.execute_parallel(PIPELINE.restrict_to_target("human_towel"),
                          lifetime=10,
                          max_lag=5)
Ejemplo n.º 6
0
from comm import pipeline
from comm import comm
import os

comm.initComm()
os.chdir(comm.DATA_ROOT)
PIPELINE = make_vision_pipeline(downsample=args.downsample,
                                classifier=args.classifier,
                                init_period=args.init_period)
assert args.target in PIPELINE.get_items()

LIFETIME = 9999 if args.no_cleanup else 10

import subprocess
if args.reset == "full":
    comm.resetDataDir()
elif args.reset == "partial":
    subprocess.check_call(
        "rm -rf kinect labels images rope_pts towel_pts rope_init rope_model towel_model once/init_rope.txt",
        shell=True)
elif args.reset == "allbutkinect":
    subprocess.check_call(
        "rm -rf labels images rope_pts towel_pts rope_init rope_model towel_model once/init_rope.txt",
        shell=True)
if args.order == "series":
    pipeline.execute_series(PIPELINE.restrict_to_target(args.target))
elif args.order == "parallel":
    pipeline.execute_parallel(PIPELINE.restrict_to_target(args.target),
                              lifetime=LIFETIME,
                              max_lag=5)