Open guchengxi1994 opened 3 years ago
and i cannot run the example code on release mode, here is the report.
E/AndroidRuntime(26666): FATAL EXCEPTION: main E/AndroidRuntime(26666): Process: com.example.pytorch_mobile_example, PID: 26666 E/AndroidRuntime(26666): java.lang.ExceptionInInitializerError E/AndroidRuntime(26666): at io.flutter.plugins.GeneratedPluginRegistrant.registerWith() E/AndroidRuntime(26666): at com.example.pytorch_mobile_example.MainActivity.a() E/AndroidRuntime(26666): at io.flutter.embedding.android.f.a() E/AndroidRuntime(26666): at io.flutter.embedding.android.e.onCreate() E/AndroidRuntime(26666): at android.app.Activity.performCreate(Activity.java:6444) E/AndroidRuntime(26666): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1116) E/AndroidRuntime(26666): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585) E/AndroidRuntime(26666): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2720) E/AndroidRuntime(26666): at android.app.ActivityThread.access$900(ActivityThread.java:196) E/AndroidRuntime(26666): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1538) E/AndroidRuntime(26666): at android.os.Handler.dispatchMessage(Handler.java:111) E/AndroidRuntime(26666): at android.os.Looper.loop(Looper.java:210) E/AndroidRuntime(26666): at android.app.ActivityThread.main(ActivityThread.java:5982) E/AndroidRuntime(26666): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(26666): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852) E/AndroidRuntime(26666): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742) E/AndroidRuntime(26666): Caused by: java.lang.ClassNotFoundException: Didn't find class "org.pytorch.PyTorchAndroid" on path: DexPathList[[zip file "/data/app/com.example.pytorch_mobile_example-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.pytorch_mobile_example-1/lib/arm64, /data/app/com.example.pytorch_mobile_example-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]] E/AndroidRuntime(26666): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) E/AndroidRuntime(26666): at java.lang.ClassLoader.loadClass(ClassLoader.java:511) E/AndroidRuntime(26666): at java.lang.ClassLoader.loadClass(ClassLoader.java:469) E/AndroidRuntime(26666): at java.lang.Runtime.nativeLoad(Native Method) E/AndroidRuntime(26666): at java.lang.Runtime.loadLibrary(Runtime.java:382) E/AndroidRuntime(26666): at java.lang.System.loadLibrary(System.java:1086) E/AndroidRuntime(26666): at b.a.b.a.c.a() E/AndroidRuntime(26666): at b.a.b.a.a.a() E/AndroidRuntime(26666): at c.b.a.b.<clinit>() E/AndroidRuntime(26666): ... 16 more E/AndroidRuntime(26666): Suppressed: java.lang.ClassNotFoundException: org.pytorch.PyTorchAndroid E/AndroidRuntime(26666): at java.lang.Class.classForName(Native Method) E/AndroidRuntime(26666): at java.lang.BootClassLoader.findClass(ClassLoader.java:781) E/AndroidRuntime(26666): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) E/AndroidRuntime(26666): at java.lang.ClassLoader.loadClass(ClassLoader.java:504) E/AndroidRuntime(26666): ... 24 more E/AndroidRuntime(26666): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
but on debug mode it is good.
Hi ^_^, I am also currently working on an app that requires GANs, were you able to run it using this plugin?
@NinaM31 I think maybe you can use native android or iOS and flutter channels to do GANs, here is an example https://github.com/guchengxi1994/pytorch-mobile-trial
Thanks a lot @guchengxi1994 !
i read the example codes but it seems only support object detection right now, so i am wondering can this package supports a GAN model ?