Beispiel #1
0
def addOptions(parser):
    parser.add_argument(
        'action',
        nargs='?',
        help=
        'Interact directly with the gdb server. Options: start, stop, restart or status'
    )
Beispiel #2
0
def addOptions(parser):
    parser.add_argument('proj_name', nargs=1, help='specify the project name')
Beispiel #3
0
import math
from skimage import io, transform
import glob
import os
import argparse
from multiprocessing import Pool
import subprocess
import MLSIM_datagen.SIMulator_functions
import run
import shutil

# ------------ Options --------------
from options import parser

parser.add_argument(
    '--sourceimages_path',
    type=str,
    default='/local/scratch/cnc39/phd/datasets/DIV2K/DIV2K_train_HR')
parser.add_argument('--nrep',
                    type=int,
                    default=1,
                    help='instances of same source image')
parser.add_argument('--datagen_workers', type=int, default=8, help='')
parser.add_argument('--ext',
                    nargs='+',
                    default=['png'],
                    choices=['png', 'jpg', 'tif'])

# SIM options to control from command line
parser.add_argument('--Nshifts', type=int, default=3)
parser.add_argument('--Nangles', type=int, default=3)
parser.add_argument('--k2', type=float, default=126.0)
Beispiel #4
0
def addOptions(parser):
    parser.add_argument('action', nargs='?', help='Interact directly with the gdb server. Options: start, stop, restart or status')
Beispiel #5
0
def addOptions(parser):
    parser.add_argument('module_name', nargs=1, help='remove a previously linked module from the local build')
Beispiel #6
0
def addOptions(parser):
    parser.add_argument('module_or_path', nargs='?', help='symlink a module to be used in another module')
Beispiel #7
0
def addOptions(parser):
    parser.add_argument('target', nargs='?', help='set a new target board or display the current target')
Beispiel #8
0
def addOptions(parser):
    parser.add_argument('module_or_path', nargs='?', help='symlink a module to be used in another module')
Beispiel #9
0
def addOptions(parser):
    parser.add_argument('proj_name', nargs=1, help='specify the project name')
Beispiel #10
0
def addOptions(parser):
    parser.add_argument(
        'target',
        nargs='?',
        help='set a new target board or display the current target')
Beispiel #11
0
def addOptions(parser):
    parser.add_argument('module_name', nargs=1, help='remove a previously linked module from the local build')