Пример #1
0
def cnn_eval_run(*args):
    from cnn.eval import run
    set_logger_file(
        str(
            Path(args[1]) /
            ("eval-" + time.strftime("%Y%m%d%H%M%S") + ".log")))
    run(*args)
Пример #2
0
def cnn_train(args):
    from cnn.train import run
    run(
        args.device,
        args.model,
        args.topology,
        args.version,
        args.evalsource,
        args.trainsource,
        args.threads,
        args.prefetch,
        args.batch,
        args.steps,
        args.epochs,
        args.ram,
        args.initializer,
        args.regularizer,
        args.constraint,
        args.activation,
        args.bn,
        args.lrn,
        args.dropoutrate,
        args.labelweight,
        args.loss,
        args.optimizer,
        args.learningrate,
        args.learningdecay,
        args.verbose,
        args.seed
    )
Пример #3
0
def cnn_train_run(*args):
    from cnn.train import run
    set_logger_file(
        str(
            Path(args[1]) /
            ("train-" + time.strftime("%Y%m%d%H%M%S") + ".log")))
    run(*args)
Пример #4
0
def ds_tfrdist(args):
    from ds.tfrdist import run
    run(
        args.source,
        args.threads,
        args.verbose,
        args.seed
    )
Пример #5
0
def ds_genweight(args):
    from ds.genweight import run
    run(
        args.source,
        args.expand,
        args.ratio,
        args.border,
        args.preview
    )
Пример #6
0
def ds_cleanmask(args):
    from ds.cleanmask import run
    run(
        args.source,
        args.threshold,
        args.open,
        args.close,
        args.minarea,
        args.expand,
        args.preview
    )
Пример #7
0
def ds_tfrorder(args):
    from ds.tfrorder import run
    run(
        args.source,
        args.threads,
        args.prefetch,
        args.batch,
        args.steps,
        args.epochs,
        args.verbose,
        args.seed
    )
Пример #8
0
def cnn_predict(args):
    from cnn.predict import run
    run(
        args.device,
        args.model,
        args.source,
        args.threads,
        args.prefetch,
        args.batch,
        args.epochs,
        args.verbose,
        args.seed
    )
Пример #9
0
def cnn_eval(args):
    from cnn.eval import run
    run(
        args.device,
        args.model,
        args.source,
        args.threads,
        args.prefetch,
        args.batch,
        args.steps,
        args.verbose,
        args.seed
    )
Пример #10
0
def cnn_trainmulti(args):
    from cnn.trainmulti import run
    run(
        args.config,
        args.model,
        args.tensorboard,
        args.always,
        args.fresh,
        args.device,
        args.threads,
        args.prefetch,
        args.ram,
        args.verbose
    )
Пример #11
0
def ds_bake(args):
    from ds.bake import run
    run(
        args.device,
        args.name,
        args.source,
        args.compression,
        args.batch,
        args.testratio,
        args.evalratio,
        args.size,
        args.blur,
        args.blurscale,
        args.centercrop,
        args.scales,
        args.flips,
        args.rotations,
        args.crops,
        args.brightness,
        args.contrast,
        args.gnoise,
        args.unoise,
        args.seed
    )
Пример #12
0
def ds_preview(args):
    from ds.preview import run
    run(
        args.source
    )
Пример #13
0
def ds_merge2d(args):
    from ds.merge2d import run
    run(
        args.source,
        args.destination
    )
Пример #14
0
def ds_jpegorient(args):
    from ds.jpegorient import run
    run(
        args.source
    )
Пример #15
0
def ds_importmve(args):
    from ds.importmve import run
    run(
        args.source,
        args.destination
    )
Пример #16
0
def ds_importflower(args):
    from ds.importflower import run
    run(
        args.source,
        args.destination
    )