From e50f71347983d4641deb7d90944b6c4d3a34301f Mon Sep 17 00:00:00 2001 From: Johannes Stelzer Date: Wed, 11 Jan 2023 12:58:59 +0100 Subject: [PATCH] contact info --- example1_standard.py | 2 +- example2_inpaint.py | 2 +- example3_multitrans.py | 2 +- example4_upscaling.py | 2 +- gradio_ui.py | 2 +- latent_blending.py | 2 +- movie_util.py | 2 +- stable_diffusion_holder.py | 9 ++++++--- 8 files changed, 13 insertions(+), 10 deletions(-) diff --git a/example1_standard.py b/example1_standard.py index 3de788f..b8975bc 100644 --- a/example1_standard.py +++ b/example1_standard.py @@ -1,5 +1,5 @@ # Copyright 2022 Lunar Ring. All rights reserved. -# Written by Johannes Stelzer @j_stelzer +# Written by Johannes Stelzer, email stelzer@lunar-ring.ai twitter @j_stelzer # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/example2_inpaint.py b/example2_inpaint.py index e90fdae..e5f9d0e 100644 --- a/example2_inpaint.py +++ b/example2_inpaint.py @@ -1,5 +1,5 @@ # Copyright 2022 Lunar Ring. All rights reserved. -# Written by Johannes Stelzer @j_stelzer +# Written by Johannes Stelzer, email stelzer@lunar-ring.ai twitter @j_stelzer # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/example3_multitrans.py b/example3_multitrans.py index 73ee65a..2c09a85 100644 --- a/example3_multitrans.py +++ b/example3_multitrans.py @@ -1,5 +1,5 @@ # Copyright 2022 Lunar Ring. All rights reserved. -# Written by Johannes Stelzer @j_stelzer +# Written by Johannes Stelzer, email stelzer@lunar-ring.ai twitter @j_stelzer # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/example4_upscaling.py b/example4_upscaling.py index c3c6625..74888ba 100644 --- a/example4_upscaling.py +++ b/example4_upscaling.py @@ -1,5 +1,5 @@ # Copyright 2022 Lunar Ring. All rights reserved. -# Written by Johannes Stelzer @j_stelzer +# Written by Johannes Stelzer, email stelzer@lunar-ring.ai twitter @j_stelzer # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/gradio_ui.py b/gradio_ui.py index 13bb9eb..f003c60 100644 --- a/gradio_ui.py +++ b/gradio_ui.py @@ -1,5 +1,5 @@ # Copyright 2022 Lunar Ring. All rights reserved. -# Written by Johannes Stelzer @j_stelzer +# Written by Johannes Stelzer, email stelzer@lunar-ring.ai twitter @j_stelzer # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/latent_blending.py b/latent_blending.py index b8d93a6..4d1eb8d 100644 --- a/latent_blending.py +++ b/latent_blending.py @@ -1,5 +1,5 @@ # Copyright 2022 Lunar Ring. All rights reserved. -# Written by Johannes Stelzer @j_stelzer +# Written by Johannes Stelzer, email stelzer@lunar-ring.ai twitter @j_stelzer # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/movie_util.py b/movie_util.py index 596b85c..0d86f46 100644 --- a/movie_util.py +++ b/movie_util.py @@ -1,5 +1,5 @@ # Copyright 2022 Lunar Ring. All rights reserved. -# Written by Johannes Stelzer @j_stelzer +# Written by Johannes Stelzer, email stelzer@lunar-ring.ai twitter @j_stelzer # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/stable_diffusion_holder.py b/stable_diffusion_holder.py index c96603c..d9b1972 100644 --- a/stable_diffusion_holder.py +++ b/stable_diffusion_holder.py @@ -1,5 +1,5 @@ # Copyright 2022 Lunar Ring. All rights reserved. -# Written by Johannes Stelzer @j_stelzer +# Written by Johannes Stelzer, email stelzer@lunar-ring.ai twitter @j_stelzer # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -577,9 +577,12 @@ if __name__ == "__main__": self = StableDiffusionHolder(fp_ckpt, fp_config, num_inference_steps) #%% - prompt = "painting of a house" + self.width = 1536 + self.height = 768 + prompt = "360 degree equirectangular, a huge rocky hill full of pianos and keyboards, musical instruments, cinematic, masterpiece 8 k, artstation" + self.set_negative_prompt("out of frame, faces, rendering, blurry") te = self.get_text_embedding(prompt) img = self.run_diffusion_standard(te, return_image=True) - + Image.fromarray(img).show()