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. |
- class scenet.emit.export.Conditioning[source]#
Bases:
objectA panel’s staging, exported for image models.
Example
>>> import json >>> from scenet import Conditioning, compile_source, render_conditioning >>> exports = render_conditioning(compile_source("cast: {a: {reference: alice}}").core) >>> isinstance(exports, Conditioning), sorted(json.loads(exports.semantics))[:2] (True, ['actors', 'camera'])
See also
render_conditioning, which makes one.- files()[source]#
Each export by the suffix its file takes, in the order
buildwrites them.Example
>>> from scenet import compile_source, render_conditioning >>> exports = render_conditioning( ... compile_source("{cast: {a: {reference: alice}}}").core ... ) >>> [suffix for suffix, _ in exports.files()] ['.pose.json', '.boxes.json', '.depth.svg', '.mask.svg', '.semantics.json']
- __init__(pose, boxes, depth, mask, semantics)#