Skip to content

Commit 37ebc63

Browse files
committed
correct the way to detect a mac is being used
1 parent 69a2cb3 commit 37ebc63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ public abstract class AbstractSamJ implements AutoCloseable {
8181
protected static String UPDATE_ID_CONTOUR = "FOUND_CONTOUR_" + UUID.randomUUID().toString();
8282

8383
protected static final boolean IS_APPLE_SILICON = PlatformDetection.isMacOS()
84-
&& PlatformDetection.getArch().equals(PlatformDetection.ARCH_ARM64);
84+
&& (PlatformDetection.getArch().equals(PlatformDetection.ARCH_ARM64)
85+
|| PlatformDetection.isUsingRosseta());
8586

8687
public interface BatchCallback {
8788

0 commit comments

Comments
 (0)