Pastes the input images on a larger canvas, where the canvas size is equal to input size * ratio
.
âgpuâ
__input¶ (TensorList ('HWC')) â Input to the operator.
bytes_per_sample_hint¶ (int or list of int, optional, default = [0]) â
Output size hint, in bytes per sample.
If specified, the operatorâs outputs residing in GPU or page-locked host memory will be preallocated to accommodate a batch of samples of this size.
fill_value¶ (int or list of int) â
Tuple of the values of the color that is used to fill the canvas.
The length of the tuple must be equal to n_channels
.
min_canvas_size¶ (float or TensorList of float, optional, default = 0.0) â Enforces the minimum paste canvas dimension after scaling the input size by the ratio.
n_channels¶ (int, optional, default = 3) â Number of channels in the image.
paste_x¶ (float or TensorList of float, optional, default = 0.5) â Horizontal position of the paste in (0.0 - 1.0) image coordinates.
paste_y¶ (float or TensorList of float, optional, default = 0.5) â Vertical position of the paste in (0.0 - 1.0) image coordinates.
preserve¶ (bool, optional, default = False) â Prevents the operator from being removed from the graph even if its outputs are not used.
ratio¶ (float or TensorList of float) â Ratio of canvas size to input size. Must be >= 1.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4