Spaces:
Runtime error
Runtime error
File size: 1,266 Bytes
1d4b9ba |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
from omni_zero import OmniZeroSingle
def main():
omni_zero = OmniZeroSingle(
base_model="frankjoshua/albedobaseXL_v13",
)
base_image="https://github.com/okaris/omni-zero/assets/1448702/2ca63443-c7f3-4ba6-95c1-2a341414865f"
composition_image="https://github.com/okaris/omni-zero/assets/1448702/2ca63443-c7f3-4ba6-95c1-2a341414865f"
style_image="https://github.com/okaris/omni-zero/assets/1448702/64dc150b-f683-41b1-be23-b6a52c771584"
identity_image="https://github.com/okaris/omni-zero/assets/1448702/ba193a3a-f90e-4461-848a-560454531c58"
images = omni_zero.generate(
seed=42,
prompt="A person",
negative_prompt="blurry, out of focus",
guidance_scale=3.0,
number_of_images=1,
number_of_steps=10,
base_image=base_image,
base_image_strength=0.15,
composition_image=composition_image,
composition_image_strength=1.0,
style_image=style_image,
style_image_strength=1.0,
identity_image=identity_image,
identity_image_strength=1.0,
depth_image=None,
depth_image_strength=0.5,
)
for i, image in enumerate(images):
image.save(f"oz_output_{i}.jpg")
if __name__ == "__main__":
main() |