Shortcuts

mmedit.utils

modify_args

Modify args of argparse.ArgumentParser.

print_colored_log

Print colored log with default logger.

register_all_modules

Register all modules in mmedit into the registries.

download_from_url

Download object at the given URL to a local path.

get_sampler

Get a sampler to loop input data.

tensor2img

Convert torch Tensors into image numpy arrays.

random_choose_unknown

Randomly choose an unknown start (top-left) point for a given crop_size.

add_gaussian_noise

Add Gaussian Noise on the input image.

adjust_gamma

Performs Gamma Correction on the input image.

make_coord

Make coordinates at grid centers.

bbox2mask

Generate mask in np.ndarray from bbox.

brush_stroke_mask

Generate free-form mask.

get_irregular_mask

Get irregular mask with the constraints in mask ratio.

random_bbox

Generate a random bbox for the mask on a given image.

reorder_image

Reorder images to 'HWC' order.

to_numpy

Convert data into numpy arrays of dtype.

Read the Docs v: zyh/doc-notfound-extend
Versions
master
latest
stable
zyh-doc-notfound-extend
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.