Skip to content

Commit

Permalink
Downgrade DJL to 0.24.0
Browse files Browse the repository at this point in the history
Necessary because of deepjavalibrary/djl#2875
  • Loading branch information
petebankhead committed Nov 29, 2023
1 parent f2be02d commit d4e94a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ This appears to be related to time spent initializing JavaFX.

### Dependency updates
* Bio-Formats 7.0.1
* DeepJavaLibrary 0.25.0
* DeepJavaLibrary 0.24.0
* Groovy 4.0.15
* Guava 32.1.3-jre
* ImageJ 1.54f
Expand Down
9 changes: 7 additions & 2 deletions buildSrc/src/main/groovy/qupath.djl-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ if ('tensorflow' in djlEngines && properties['platform.shortName'] == 'mac' && S
}

def djlApi = !djlEngines.isEmpty() || project.findProperty('djl.api')
def djlZero = djlApi && project.findProperty('djl.zero')

def djlZoosProp = project.findProperty('djl.zoos') ?: "all"
djlZoosProp = djlZoosProp.strip().toLowerCase()
Expand All @@ -40,9 +41,13 @@ else
def djlVersion = libs.versions.deepJavaLibrary.get()

dependencies {
if (djlApi)
if (djlApi) {
implementation libs.deepJavaLibrary

}
if (djlZero) {
implementation "ai.djl:djl-zero:$djlVersion"
}

if ('pytorch' in djlEngines) {
implementation "ai.djl.pytorch:pytorch-engine:$djlVersion"
if ('pytorch' in djlZoos)
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ commonsMath3 = "3.6.1"
commonsText = "1.10.0"
controlsFX = "11.1.2"

deepJavaLibrary = "0.25.0"
deepJavaLibrary = "0.24.0"

groovy = "4.0.15"
gson = "2.10.1"
Expand Down

0 comments on commit d4e94a9

Please sign in to comment.