Shortcuts

mmedit.utils.random_choose_unknown

mmedit.utils.random_choose_unknown(unknown, crop_size)[source]

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

Parameters
  • unknown (np.ndarray) – The binary unknown mask.

  • crop_size (tuple[int]) – The given crop size.

Returns

The top-left point of the chosen bbox.

Return type

tuple[int]

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.