render_conditioning#

Import

from scenet import render_conditioning

Defined in

scenet.emit.export (source)

Install

pip install scenet

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:

Conditioning

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.