Spaces:
Runtime error
Runtime error
change shape
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ if device=="cpu":
|
|
48 |
# pipeline_t2i.safety_checker = pipeline_t2i.safety_checker.to(memory_format=torch.channels_last)
|
49 |
|
50 |
# Create random input to enable JIT compilation
|
51 |
-
sample = torch.randn(2,4,64,
|
52 |
timestep = torch.rand(1)*999
|
53 |
encoder_hidden_status = torch.randn(2,77,768).type(torch_dtype)
|
54 |
input_example = (sample, timestep, encoder_hidden_status)
|
|
|
48 |
# pipeline_t2i.safety_checker = pipeline_t2i.safety_checker.to(memory_format=torch.channels_last)
|
49 |
|
50 |
# Create random input to enable JIT compilation
|
51 |
+
sample = torch.randn(2,4,64,48).type(torch_dtype)
|
52 |
timestep = torch.rand(1)*999
|
53 |
encoder_hidden_status = torch.randn(2,77,768).type(torch_dtype)
|
54 |
input_example = (sample, timestep, encoder_hidden_status)
|