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

issue while adding custom model #6

Open
souvikm99 opened this issue Feb 19, 2024 · 3 comments
Open

issue while adding custom model #6

souvikm99 opened this issue Feb 19, 2024 · 3 comments

Comments

@souvikm99
Copy link

Running Gradle task 'assembleDebug'... 6.1s
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
I/flutter (18519): The Dart VM service is listening on ************************************
E/AndroidRuntime(18519): FATAL EXCEPTION: pool-3-thread-1
E/AndroidRuntime(18519): Process: com.spring98.yolo_realtime_plugin_example, PID: 18519
E/AndroidRuntime(18519): com.facebook.jni.CppException: isTuple() INTERNAL ASSERT FAILED at "../../../../src/main/cpp/libtorch_include/arm64-v8a/ATen/core/ivalue_inl.h":1101, please report a bug to PyTorch. Expected Tuple but got String
E/AndroidRuntime(18519): Exception raised from toTuple at ../../../../src/main/cpp/libtorch_include/arm64-v8a/ATen/core/ivalue_inl.h:1101 (most recent call first):
E/AndroidRuntime(18519): (no backtrace available)
E/AndroidRuntime(18519): at org.pytorch.NativePeer.forward(Native Method)
E/AndroidRuntime(18519): at org.pytorch.Module.forward(Module.java:49)
E/AndroidRuntime(18519): at com.spring98.yolo_realtime_plugin.CameraView$YoloImageAnalyzer.analyze(YoloRealtimePlugin.kt:255)
E/AndroidRuntime(18519): at androidx.camera.core.ImageAnalysis.lambda$setAnalyzer$2(ImageAnalysis.java:528)
E/AndroidRuntime(18519): at androidx.camera.core.ImageAnalysis$$ExternalSyntheticLambda2.analyze(Unknown Source:2)
E/AndroidRuntime(18519): at androidx.camera.core.ImageAnalysisAbstractAnalyzer.lambda$analyzeImage$0$androidx-camera-core-ImageAnalysisAbstractAnalyzer(ImageAnalysisAbstractAnalyzer.java:286)
E/AndroidRuntime(18519): at androidx.camera.core.ImageAnalysisAbstractAnalyzer$$ExternalSyntheticLambda1.run(Unknown Source:14)
E/AndroidRuntime(18519): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
E/AndroidRuntime(18519): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
E/AndroidRuntime(18519): at java.lang.Thread.run(Thread.java:1012)

@spring98
Copy link
Owner

sorry for late reply!

I think it would be helpful if you could answer a few questions.

  1. Which version of yolo did you use?

  2. How many GPUs were connected and used during training?

thank you

@Dough-su
Copy link

You can check if you forgot to change androidModelWidth and androidModelHeight. I spent nearly 4 hours debugging the kotlin part of the code and finally found that The size of tensor a (40) must match the size of tensor b (80) at non -singleton dimension 3

@souvikm99
Copy link
Author

i am using yolov5 and i trained it using colab A100 GPU and T4 in some versions.

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

3 participants