Skip to content

Commit e8c9c5c

Browse files
committed
correct error
1 parent 6c59ebd commit e8c9c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/ai/nets/samj/models/Sam2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public class Sam2 extends AbstractSamJ {
7676
+ "measure.label(np.ones((10, 10)), connectivity=1)" + System.lineSeparator()
7777
+ "import torch" + System.lineSeparator()
7878
+ "device = 'cpu'" + System.lineSeparator()
79-
+ ((!IS_APPLE_SILICON && false) ? "" // TODO Add a button so the user can decide whether to use accelerators or not (I tried enabling by default and some models might be out of memory)
79+
+ ((!IS_APPLE_SILICON || true) ? "" // TODO Add a button so the user can decide whether to use accelerators or not (I tried enabling by default and some models might be out of memory)
8080
: "from torch.backends import mps" + System.lineSeparator()
8181
+ "if mps.is_built() and mps.is_available():" + System.lineSeparator()
8282
+ " device = 'mps'" + System.lineSeparator())

0 commit comments

Comments
 (0)