Spaces:
Running
on
Zero
Running
on
Zero
robin-courant
commited on
Commit
•
c2d401a
1
Parent(s):
3521db3
Update app.py
Browse files
app.py
CHANGED
@@ -108,6 +108,11 @@ def generate(
|
|
108 |
# Inference
|
109 |
sample_id = SAMPLE_IDS[LABEL_TO_IDS[sample_label]]
|
110 |
seq_feat = diffuser.net.model.clip_sequential
|
|
|
|
|
|
|
|
|
|
|
111 |
batch = get_batch(prompt, sample_id, clip_model, dataset, seq_feat, device)
|
112 |
with torch.no_grad():
|
113 |
out = diffuser.predict_step(batch, 0)
|
|
|
108 |
# Inference
|
109 |
sample_id = SAMPLE_IDS[LABEL_TO_IDS[sample_label]]
|
110 |
seq_feat = diffuser.net.model.clip_sequential
|
111 |
+
|
112 |
+
print(device)
|
113 |
+
print(clip_model.device)
|
114 |
+
print(diffuser.device)
|
115 |
+
|
116 |
batch = get_batch(prompt, sample_id, clip_model, dataset, seq_feat, device)
|
117 |
with torch.no_grad():
|
118 |
out = diffuser.predict_step(batch, 0)
|