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
0fbd5ea3
Commit
0fbd5ea3
authored
2 years ago
by
carlosuc3m
Browse files
Options
Downloads
Patches
Plain Diff
allow different softwares to set the corresponding engines dir
parent
067c0428
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/org/bioimageanalysis/icy/deeplearning/versionmanager/downloading/DeepLearningVersionDownloader.java
+9
-1
9 additions, 1 deletion
...ionmanager/downloading/DeepLearningVersionDownloader.java
with
9 additions
and
1 deletion
src/main/java/org/bioimageanalysis/icy/deeplearning/versionmanager/downloading/DeepLearningVersionDownloader.java
+
9
−
1
View file @
0fbd5ea3
...
@@ -2,6 +2,7 @@ package org.bioimageanalysis.icy.deeplearning.versionmanager.downloading;
...
@@ -2,6 +2,7 @@ package org.bioimageanalysis.icy.deeplearning.versionmanager.downloading;
import
java.io.BufferedInputStream
;
import
java.io.BufferedInputStream
;
import
java.io.BufferedOutputStream
;
import
java.io.BufferedOutputStream
;
import
java.io.File
;
import
java.io.FileOutputStream
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.net.HttpURLConnection
;
import
java.net.HttpURLConnection
;
...
@@ -38,7 +39,7 @@ public class DeepLearningVersionDownloader
...
@@ -38,7 +39,7 @@ public class DeepLearningVersionDownloader
/**
/**
* The path where Deep Learning libraries are downloaded.
* The path where Deep Learning libraries are downloaded.
*/
*/
private
static
Path
downloadsPath
=
Paths
.
get
(
"."
,
"engines"
).
toAbsolutePath
();
private
static
Path
downloadsPath
=
Paths
.
get
(
"engines"
).
toAbsolutePath
();
/**
/**
* Checks if the target Downloaded version is already downloaded locally.
* Checks if the target Downloaded version is already downloaded locally.
...
@@ -303,5 +304,12 @@ public class DeepLearningVersionDownloader
...
@@ -303,5 +304,12 @@ public class DeepLearningVersionDownloader
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
return
pathList
;
return
pathList
;
}
}
public
static
void
setEnginesDirectory
(
String
dir
)
throws
IOException
{
if
(!(
new
File
(
dir
).
isDirectory
()))
throw
new
IOException
(
"The engines directory must correspond to an already existing folder. "
+
"The provided path is not valid: "
+
dir
);
downloadsPath
=
Paths
.
get
(
dir
);
}
}
}
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