Update prediction.py
Browse files- prediction.py +3 -3
prediction.py
CHANGED
|
@@ -55,11 +55,11 @@ def run_image_prediction(
|
|
| 55 |
|
| 56 |
# Sample from model using provided sequence and nucleus image
|
| 57 |
_, _, _, predicted_threshold, predicted_heatmap = model.celle.sample(
|
| 58 |
-
text=sequence,
|
| 59 |
-
condition=nucleus_image,
|
| 60 |
timesteps=1,
|
| 61 |
temperature=1,
|
| 62 |
-
progress=
|
| 63 |
)
|
| 64 |
|
| 65 |
# Move predicted_threshold and predicted_heatmap to CPU and select first element of batch
|
|
|
|
| 55 |
|
| 56 |
# Sample from model using provided sequence and nucleus image
|
| 57 |
_, _, _, predicted_threshold, predicted_heatmap = model.celle.sample(
|
| 58 |
+
text=sequence.to(device),
|
| 59 |
+
condition=nucleus_image.to(device),
|
| 60 |
timesteps=1,
|
| 61 |
temperature=1,
|
| 62 |
+
progress=False,
|
| 63 |
)
|
| 64 |
|
| 65 |
# Move predicted_threshold and predicted_heatmap to CPU and select first element of batch
|