Spaces:
Runtime error
Runtime error
modified: gradio_app.py
Browse files- gradio_app.py +7 -0
gradio_app.py
CHANGED
@@ -253,6 +253,13 @@ def infer(prompt, sample_image, recraft_model, seed=0):
|
|
253 |
|
254 |
model.to(device)
|
255 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
256 |
# Run the denoising process
|
257 |
with accelerator.autocast(), torch.no_grad():
|
258 |
x = flux_train_utils.denoise(
|
|
|
253 |
|
254 |
model.to(device)
|
255 |
|
256 |
+
print(f"Model device: {model.device}")
|
257 |
+
print(f"Noise device: {noise.device}")
|
258 |
+
print(f"Image IDs device: {img_ids.device}")
|
259 |
+
print(f"T5 output device: {t5_out.device}")
|
260 |
+
print(f"Text IDs device: {txt_ids.device}")
|
261 |
+
print(f"L pooled device: {l_pooled.device}")
|
262 |
+
|
263 |
# Run the denoising process
|
264 |
with accelerator.autocast(), torch.no_grad():
|
265 |
x = flux_train_utils.denoise(
|