Spaces:
Runtime error
Runtime error
TooManyCooks
commited on
Commit
Β·
7882fdb
1
Parent(s):
e0e3b5f
changed torch.float16 to float32
Browse files- __pycache__/model.cpython-311.pyc +0 -0
- __pycache__/story_generator.cpython-311.pyc +0 -0
- app.py +1 -4
- dnnlib/__pycache__/__init__.cpython-311.pyc +0 -0
- dnnlib/__pycache__/util.cpython-311.pyc +0 -0
- torch_utils/__pycache__/__init__.cpython-311.pyc +0 -0
- torch_utils/__pycache__/custom_ops.cpython-311.pyc +0 -0
- torch_utils/__pycache__/misc.cpython-311.pyc +0 -0
- torch_utils/__pycache__/persistence.cpython-311.pyc +0 -0
- torch_utils/ops/__pycache__/__init__.cpython-311.pyc +0 -0
- torch_utils/ops/__pycache__/bias_act.cpython-311.pyc +0 -0
- torch_utils/ops/__pycache__/conv2d_gradfix.cpython-311.pyc +0 -0
- torch_utils/ops/__pycache__/conv2d_resample.cpython-311.pyc +0 -0
- torch_utils/ops/__pycache__/filtered_lrelu.cpython-311.pyc +0 -0
- torch_utils/ops/__pycache__/fma.cpython-311.pyc +0 -0
- torch_utils/ops/__pycache__/grid_sample_gradfix.cpython-311.pyc +0 -0
- torch_utils/ops/__pycache__/upfirdn2d.cpython-311.pyc +0 -0
__pycache__/model.cpython-311.pyc
ADDED
Binary file (7 kB). View file
|
|
__pycache__/story_generator.cpython-311.pyc
ADDED
Binary file (1.19 kB). View file
|
|
app.py
CHANGED
@@ -17,7 +17,7 @@ This is an unofficial demo for [https://github.com/NVlabs/stylegan3](https://git
|
|
17 |
|
18 |
model = Model()
|
19 |
model_id = "runwayml/stable-diffusion-v1-5"
|
20 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16
|
21 |
#pipe = pipe.to("cuda") # Remove or comment out this line if using CPU
|
22 |
|
23 |
sg = None
|
@@ -87,9 +87,6 @@ with gr.Blocks(css='style.css') as image_gen_block:
|
|
87 |
return sg.generate_story(prompt)
|
88 |
|
89 |
def generate_city():
|
90 |
-
model_id = "runwayml/stable-diffusion-v1-5"
|
91 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
92 |
-
pipe = pipe.to("cuda")
|
93 |
city_prompt = f"render 2048K ultra realistic render high definition a very technologically advanced city, cyberpunk, hyper realistic, detailed, ray tracing, POV-Ray, metallic, Sci-Fi"
|
94 |
city_image = pipe(city_prompt).images[0]
|
95 |
return city_image
|
|
|
17 |
|
18 |
model = Model()
|
19 |
model_id = "runwayml/stable-diffusion-v1-5"
|
20 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float32) #Change to torch.float16 for faster inference and using cpu
|
21 |
#pipe = pipe.to("cuda") # Remove or comment out this line if using CPU
|
22 |
|
23 |
sg = None
|
|
|
87 |
return sg.generate_story(prompt)
|
88 |
|
89 |
def generate_city():
|
|
|
|
|
|
|
90 |
city_prompt = f"render 2048K ultra realistic render high definition a very technologically advanced city, cyberpunk, hyper realistic, detailed, ray tracing, POV-Ray, metallic, Sci-Fi"
|
91 |
city_image = pipe(city_prompt).images[0]
|
92 |
return city_image
|
dnnlib/__pycache__/__init__.cpython-311.pyc
CHANGED
Binary files a/dnnlib/__pycache__/__init__.cpython-311.pyc and b/dnnlib/__pycache__/__init__.cpython-311.pyc differ
|
|
dnnlib/__pycache__/util.cpython-311.pyc
CHANGED
Binary files a/dnnlib/__pycache__/util.cpython-311.pyc and b/dnnlib/__pycache__/util.cpython-311.pyc differ
|
|
torch_utils/__pycache__/__init__.cpython-311.pyc
CHANGED
Binary files a/torch_utils/__pycache__/__init__.cpython-311.pyc and b/torch_utils/__pycache__/__init__.cpython-311.pyc differ
|
|
torch_utils/__pycache__/custom_ops.cpython-311.pyc
CHANGED
Binary files a/torch_utils/__pycache__/custom_ops.cpython-311.pyc and b/torch_utils/__pycache__/custom_ops.cpython-311.pyc differ
|
|
torch_utils/__pycache__/misc.cpython-311.pyc
CHANGED
Binary files a/torch_utils/__pycache__/misc.cpython-311.pyc and b/torch_utils/__pycache__/misc.cpython-311.pyc differ
|
|
torch_utils/__pycache__/persistence.cpython-311.pyc
CHANGED
Binary files a/torch_utils/__pycache__/persistence.cpython-311.pyc and b/torch_utils/__pycache__/persistence.cpython-311.pyc differ
|
|
torch_utils/ops/__pycache__/__init__.cpython-311.pyc
CHANGED
Binary files a/torch_utils/ops/__pycache__/__init__.cpython-311.pyc and b/torch_utils/ops/__pycache__/__init__.cpython-311.pyc differ
|
|
torch_utils/ops/__pycache__/bias_act.cpython-311.pyc
CHANGED
Binary files a/torch_utils/ops/__pycache__/bias_act.cpython-311.pyc and b/torch_utils/ops/__pycache__/bias_act.cpython-311.pyc differ
|
|
torch_utils/ops/__pycache__/conv2d_gradfix.cpython-311.pyc
CHANGED
Binary files a/torch_utils/ops/__pycache__/conv2d_gradfix.cpython-311.pyc and b/torch_utils/ops/__pycache__/conv2d_gradfix.cpython-311.pyc differ
|
|
torch_utils/ops/__pycache__/conv2d_resample.cpython-311.pyc
ADDED
Binary file (7.52 kB). View file
|
|
torch_utils/ops/__pycache__/filtered_lrelu.cpython-311.pyc
CHANGED
Binary files a/torch_utils/ops/__pycache__/filtered_lrelu.cpython-311.pyc and b/torch_utils/ops/__pycache__/filtered_lrelu.cpython-311.pyc differ
|
|
torch_utils/ops/__pycache__/fma.cpython-311.pyc
ADDED
Binary file (2.87 kB). View file
|
|
torch_utils/ops/__pycache__/grid_sample_gradfix.cpython-311.pyc
CHANGED
Binary files a/torch_utils/ops/__pycache__/grid_sample_gradfix.cpython-311.pyc and b/torch_utils/ops/__pycache__/grid_sample_gradfix.cpython-311.pyc differ
|
|
torch_utils/ops/__pycache__/upfirdn2d.cpython-311.pyc
CHANGED
Binary files a/torch_utils/ops/__pycache__/upfirdn2d.cpython-311.pyc and b/torch_utils/ops/__pycache__/upfirdn2d.cpython-311.pyc differ
|
|