Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TensorFlow Manager
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bioimage Analysis
TensorFlow Manager
Commits
e52406bc
Commit
e52406bc
authored
2 years ago
by
carlosuc3m
Browse files
Options
Downloads
Patches
Plain Diff
only display info message if the system uses ARM64 achitecture
parent
2030a3fd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/plugins/danyfel80/deeplearningdownloader/DeepLearningVersionSelector.java
+15
-9
15 additions, 9 deletions
...0/deeplearningdownloader/DeepLearningVersionSelector.java
with
15 additions
and
9 deletions
src/main/java/plugins/danyfel80/deeplearningdownloader/DeepLearningVersionSelector.java
+
15
−
9
View file @
e52406bc
...
@@ -6,6 +6,7 @@ import java.util.Map;
...
@@ -6,6 +6,7 @@ import java.util.Map;
import
java.util.function.Function
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
org.bioimageanalysis.icy.deeplearning.system.PlatformDetection
;
import
org.bioimageanalysis.icy.deeplearning.utils.Constants
;
import
org.bioimageanalysis.icy.deeplearning.utils.Constants
;
import
org.bioimageanalysis.icy.deeplearning.versionmanagement.AvailableDeepLearningVersions
;
import
org.bioimageanalysis.icy.deeplearning.versionmanagement.AvailableDeepLearningVersions
;
import
org.bioimageanalysis.icy.deeplearning.versionmanagement.DeepLearningVersion
;
import
org.bioimageanalysis.icy.deeplearning.versionmanagement.DeepLearningVersion
;
...
@@ -72,15 +73,20 @@ public class DeepLearningVersionSelector extends EzPlug implements EzStoppable,
...
@@ -72,15 +73,20 @@ public class DeepLearningVersionSelector extends EzPlug implements EzStoppable,
@Override
@Override
protected
void
initialize
()
protected
void
initialize
()
{
{
MessageDialog
.
showDialog
(
"ARM64 chips and compatiblity with Deep Learnign engines"
,
if
(
new
PlatformDetection
().
getOs
().
equals
(
PlatformDetection
.
ARCH_ARM64
))
{
"This computer uses the ARM64 chip architecture. This architecture"
+
System
.
lineSeparator
()
MessageDialog
.
showDialog
(
"ARM64 chips and compatiblity with Deep Learnign engines"
,
+
"is relatively recent, therefore many of the existing Deep Learning"
+
System
.
lineSeparator
()
"This computer uses the ARM64 chip architecture. This architecture"
+
System
.
lineSeparator
()
+
"engines will not be available on your computer."
+
System
.
lineSeparator
()
+
"is relatively recent, therefore many of the existing Deep Learning"
+
System
.
lineSeparator
()
+
"ARM64 chips also provide the possibility of running some x86_64"
+
System
.
lineSeparator
()
+
"engines will not be available on your computer."
+
System
.
lineSeparator
()
+
"compiled programs using Rosetta. In order to enable Rosetta, change"
+
System
.
lineSeparator
()
+
"ARM64 chips also provide the possibility of running some x86_64"
+
System
.
lineSeparator
()
+
"the JAVA_HOME variable to a Java 8 or lower. Using Rosetta will"
+
System
.
lineSeparator
()
+
"compiled programs using Rosetta. In order to enable Rosetta, change"
+
System
.
lineSeparator
()
+
"enable more Deep Learning engines, but there will be some still missing."
+
System
.
lineSeparator
()
+
"the JAVA_HOME variable to a Java 8 or lower. Currently, the JAVA_HOME"
+
System
.
lineSeparator
()
+
"For more information, go to the Wiki: "
+
System
.
lineSeparator
()
+
Constants
.
WIKI_LINK
,
MessageDialog
.
INFORMATION_MESSAGE
);
+
"points to:"
+
System
.
lineSeparator
()
+
System
.
getProperty
(
"java.home"
)
+
System
.
lineSeparator
()
+
"Using Rosetta will enable more Deep Learning engines, although some"
+
System
.
lineSeparator
()
+
"will still be missing."
+
System
.
lineSeparator
()
+
"For more information, go to the Wiki: "
+
System
.
lineSeparator
()
+
Constants
.
WIKI_LINK
,
MessageDialog
.
INFORMATION_MESSAGE
);
}
String
[]
versionStrings
=
versions
.
keySet
().
stream
().
sorted
().
toArray
(
String
[]::
new
);
String
[]
versionStrings
=
versions
.
keySet
().
stream
().
sorted
().
toArray
(
String
[]::
new
);
varInVersion
=
new
EzVarText
(
"Version"
,
versionStrings
,
getDefaultVersionIndex
(
versionStrings
),
false
);
varInVersion
=
new
EzVarText
(
"Version"
,
versionStrings
,
getDefaultVersionIndex
(
versionStrings
),
false
);
addEzComponent
(
varInVersion
);
addEzComponent
(
varInVersion
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment