Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can this package support GAN right now? #12

Open
guchengxi1994 opened this issue Jul 2, 2021 · 4 comments
Open

can this package support GAN right now? #12

guchengxi1994 opened this issue Jul 2, 2021 · 4 comments

Comments

@guchengxi1994
Copy link

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 ?

@guchengxi1994
Copy link
Author

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.

@NinaM31
Copy link

NinaM31 commented Jun 14, 2022

Hi ^_^, I am also currently working on an app that requires GANs, were you able to run it using this plugin?

@guchengxi1994
Copy link
Author

@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

@NinaM31
Copy link

NinaM31 commented Jun 15, 2022

Thanks a lot @guchengxi1994 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants