Skip to content

Commit

Permalink
add metadata to scn2img intermediate image output
Browse files Browse the repository at this point in the history
Following metadata is written:
- "prompt" contains the representation of the SceneObject corresponding to the intermediate image
- "seed" contains the seed at the start of the function that generated this intermediate image
- "width" and "height" contain the size of the image.

To get the seed at the start of the render function without using it, a class SeedGenerator is added and
used instead of the python generator functions.

Fixes warning thrown in console: "> Couldn't find metadata on image", originally reported by @codedealer in Sygil-Dev#1179 (review)
  • Loading branch information
xaedes committed Oct 2, 2022
1 parent 849a569 commit bd0b275
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/scn2img.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import collections
import yaml
import math
import copy
import random
from typing import List, Union, Dict, Callable, Any, Optional, Type, Tuple

Expand Down

0 comments on commit bd0b275

Please sign in to comment.