From 8c858f372c9098ec6d4eb1054ad122ade29ec32f Mon Sep 17 00:00:00 2001 From: Mac Date: Sat, 27 May 2023 03:25:48 +0500 Subject: [PATCH 1/2] fix: update ndk version to 21.1.6352462 --- ImageSegmentation/app/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ImageSegmentation/app/build.gradle b/ImageSegmentation/app/build.gradle index 8a38847f..fe1a12d8 100644 --- a/ImageSegmentation/app/build.gradle +++ b/ImageSegmentation/app/build.gradle @@ -10,7 +10,8 @@ repositories { android { compileSdkVersion 30 buildToolsVersion "30.0.2" - + //Added ndk version here + ndkVersion "21.1.6352462" defaultConfig { applicationId "org.pytorch.demo.imagesegmentation" minSdkVersion 28 From 3f2dda092fd5930e0d1d26f7801fec6929267760 Mon Sep 17 00:00:00 2001 From: Muhammad Junaid Nawab Date: Sat, 27 May 2023 03:37:23 +0500 Subject: [PATCH 2/2] fix: Update pytorch libraries to 1.13.1 --- ImageSegmentation/app/build.gradle | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ImageSegmentation/app/build.gradle b/ImageSegmentation/app/build.gradle index fe1a12d8..45b24a56 100644 --- a/ImageSegmentation/app/build.gradle +++ b/ImageSegmentation/app/build.gradle @@ -10,7 +10,7 @@ repositories { android { compileSdkVersion 30 buildToolsVersion "30.0.2" - //Added ndk version here + //Declare ndk version here ndkVersion "21.1.6352462" defaultConfig { applicationId "org.pytorch.demo.imagesegmentation" @@ -36,6 +36,7 @@ dependencies { androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' - implementation 'org.pytorch:pytorch_android_lite:1.10.0' - implementation 'org.pytorch:pytorch_android_torchvision_lite:1.10.0' + //Using Pytorch Library 1.13.1 + implementation 'org.pytorch:pytorch_android_lite:1.13.1' + implementation 'org.pytorch:pytorch_android_torchvision_lite:1.13.1' } \ No newline at end of file