You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sopa/patches/infer.py
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,7 @@ def compute_embeddings(
50
50
image_key: Optional image key of the image, unecessary if there is only one image.
51
51
batch_size: Mini-batch size used during inference.
52
52
device: Device used for the computer vision model.
53
+
data_parallel: If `True`, the model will be run in data parallel mode. If a list of GPUs is provided, the model will be run in data parallel mode on the specified GPUs.
53
54
key_added: Optional name of the spatial element that will be added (storing the embeddings).
0 commit comments