render_conditioning#
Import |
|
Defined in |
|
Install |
|
Since |
0.12 |
Stability |
Public: follows semantic versioning. Below 1.0, a minor release may change it, and the CHANGELOG says how. |
- scenet.emit.export.render_conditioning(core)[source]#
Export a panel’s staging for image models: pose, boxes, depth, mask and semantics.
- Parameters:
core (
PanelCore) – The compiled panel.- Return type:
- Returns:
The five exports, as text.
Note
Each image is drawn from the Core alone, and needs no font and no picture: it raises nothing for any Core.
Example
>>> from scenet import compile_source, render_conditioning >>> exports = render_conditioning(compile_source("{cast: {a: {reference: alice}}}").core) >>> 'id="actor-a"' in exports.mask, exports.depth.count('fill="#ffffff"') (True, 1)
See also
Conditioning, what it returns.