Shortcuts

mmedit.utils.to_numpy

mmedit.utils.to_numpy(img, dtype=<class 'numpy.float64'>)[source]

Convert data into numpy arrays of dtype.

Parameters
  • img (Tensor | np.ndarray) – Input data.

  • dtype (np.dtype) – Set the data type of the output. Default: np.float64

Returns

Converted numpy arrays data.

Return type

img (np.ndarray)

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.