kandi X-RAY | minikin Summary
kandi X-RAY | minikin Summary
minikin
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of minikin
minikin Key Features
minikin Examples and Code Snippets
Community Discussions
Trending Discussions on minikin
QUESTION
I'm making an object detection app for Android, I got good performance while training with ssd_mobilenet_v1_fpn model.
I exported frozen inference graph, converted to tflite and quantized it to improve performance. But when i try it on TensorFlow Lite Object Detection Android Demo the app crashes.
The app works perfectly with the default model (ssd_mobilenet_v1) but unfortunately isn't good for small objects detection and classification.
Here my quantized ssd_mobilenet_v1_fpn model:
Google Drive: https://drive.google.com/file/d/1rfc64nUJzHQjxigD6hZ6FqxyGhLRbyB1/view?usp=sharing
Here the unquantized model:
Googe Drive: https://drive.google.com/file/d/11c_PdgobP0jvzTnssOkmcjp19DZoBAAQ/view?usp=sharing
For quantization i used this command line:
bazel run -c opt tensorflow/lite/toco:toco -- \ --input_file=tflite_graph.pb \ --output_file=detect_quant.tflite \ --input_shapes=1,640,480,3 \ --input_arrays=normalized_input_image_tensor \ --output_arrays=TFLite_Detection_PostProcess,TFLite_Detection_PostProcess:1,TFLite_Detection_PostProcess:2,TFLite_Detection_PostProcess:3 \ --inference_type=QUANTIZED_UINT8 \ --mean_values=128 \ --std_values=128 \ --change_concat_input_ranges=false \ --allow_custom_ops --default_ranges_min=0 --default_ranges_max=6
I also tried tflite converter python api, but it doesn't work for this model.
Here the android logcat errors: Errors
2020-09-16 18:54:06.363 29747-29747/org.tensorflow.lite.examples.detection E/Minikin: Could not get cmap table size!
2020-09-16 18:54:06.364 29747-29767/org.tensorflow.lite.examples.detection E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!
2020-09-16 18:54:06.871 29747-29747/org.tensorflow.lite.examples.detection E/BufferQueueProducer: [] Can not get hwsched service
2020-09-16 18:54:21.033 29747-29786/org.tensorflow.lite.examples.detection A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 29786 (inference)
Has anyone managed to use an fpn model on android? or a model other than ssd_mobilenet_v1?
...ANSWER
Answered 2020-Sep-17 at 01:56First, when applying quantization, the performance is getting poorer. The more of quantization (to float => to int) the poorer it becomes. For detection model, the result tends to be not well operated on small objects and not well fit the bounding boxes of big objects. I am working on a paper to solve this problem. May come back to you how to solve it with ssd soon.
Second, I dont have the access to see your model, mate. However, according to this and my experience quantize, you can convert to any detection model with ssd backbone. You may want to follow the instruction I gave you to make sure the quantization ok
QUESTION
every time i run my app it shows this error in the title and i have searched for the problem some said make the ViewModel constructor public and mine is public other said Either:
Remove the Context context and LifecycleOwner lifecycleOwner constructor parameters from your HomeViewModel, or
Create a ViewModelProvider.Factory that can build your HomeViewModel instances, and use that factory with ViewModelProviders.of()
and i have made the two solutions and still get the same error
MainActivity
...ANSWER
Answered 2019-Sep-18 at 15:49Your database is never initialized.
instance!=null
should be instance==null
.
QUESTION
when i touch an item in the listView, the app crash
here's the logcat
2020-03-15 20:26:50.123 19174-19174/com.zeroXmohamed.TN19 E/Minikin: Could not get cmap table size! 2020-03-15 20:26:50.158 19174-19202/com.zeroXmohamed.TN19 E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 2020-03-15 20:26:54.323 19174-19174/com.zeroXmohamed.TN19 E/AndroidRuntime: FATAL EXCEPTION: main Process: com.zeroXmohamed.TN19, PID: 19174 android.content.res.Resources$NotFoundException: String resource ID #0x3 at android.content.res.Resources.getText(Resources.java:410) at android.content.res.HwResources.getText(HwResources.java:465) at android.widget.Toast.makeText(Toast.java:328) at com.zeroXmohamed.TN19.fragment.ChercheFragment$1.onItemClick(ChercheFragment.java:48) at android.widget.AdapterView.performItemClick(AdapterView.java:321) at android.widget.AbsListView.performItemClick(AbsListView.java:1217) at android.widget.AbsListView$PerformClick.run(AbsListView.java:3203) at android.widget.AbsListView$3.run(AbsListView.java:4151) at android.os.Handler.handleCallback(Handler.java:808) at android.os.Handler.dispatchMessage(Handler.java:101) at android.os.Looper.loop(Looper.java:166) at android.app.ActivityThread.main(ActivityThread.java:7529) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
here's the code
...ANSWER
Answered 2020-Mar-15 at 19:36Replace:
QUESTION
I'm trying to send an e-mail from my Android App. With the click on a button, gmail should open and show a new email with my previously defined recipient, subject and email body. So far I've tried sending the Intent.ACTION_VIEW as well as Intent.ACTION_SENDTO. Both show my draft with the recipient only. Both subject and message are being opressed. Weird thing is when using the emulator, it works just fine. Also was trying to lock at the android errorlog. Seems like i don't have permission. Is it really a permission problem or could it be something else? I'd really appreciate any help cheers
Here is my code:
- sending email via ACTION_VIEW
ANSWER
Answered 2019-Dec-13 at 04:57try this code
QUESTION
It maybe cause by the ARM GPUs in Huawei Phones, according to this article ARM GPUs in Huawei phone. And it doesn't happen when i try to run the app in another phone (Pixel API 27 in Android Studio).So What should i do?
Logcat show in Huawei Phone ...ANSWER
Answered 2019-Feb-27 at 18:28I solved this issue by upgrading my Android Studio 3.2.0
to Android Studio 3.3.1
. Not only this but upgrade the PROJECT level of build.gradle
from
QUESTION
My android app does not start after i had implemented ads. How can I repair that? My android studio version is 3.5.
Main Activity Layout
...ANSWER
Answered 2019-Sep-01 at 13:13In your XML file you are using id for the ad:
QUESTION
I have a RecyclerView of CardViews. I try to open a new Activity whenever one of the items of RecyclerView is clicked. then I saw if the user clicks the card two times very quickly the activity is opening twice , so I added a boolean called responding to ignore the second touch.
but now I faced another bug. when I click the card twice quickly the app closes and I see my phone background and when I click the launcher icon again I see the second activity that I was going to see.
and here is my Logcat when I click the card twice fast.
logcat:
...ANSWER
Answered 2018-Aug-19 at 13:58After a lot of trying and research I found the problem
when I commented this line of code in my app style my problem solved.
QUESTION
Good day!
I have issues implementing a DataBase into my App. The issue that baffles me is that I imported a Database called itemsDB which worked for me. If I use any other database (lets talk about myDB.db) I have the issue of a non existent directory.
It seems like a lot of people have that issue, but I check if the DB is existent in the Advice File Explorer and it is:
So this rules out most issues addressed in the other posts.
So I said everything is working with itemDB, this means if I use:
...ANSWER
Answered 2018-Oct-19 at 09:31Alright, after a few hours I finally found out what caused my issue!
When copying the Database in the Assets folder renamed the DB which apparently led to a lot of problems.
So Boys, do not rename your DB's when copying them in the asset folder!
QUESTION
All elements (ImageView,TextView,Button) are yellow with some eror: "Casting find view by id is redundant", also XML.
When i start up app it just crashs. There is no red line, also I've tried with repair and build-> clean project. Doesn't help at all...
Please could you help me I have to finish this project till monday.
Part of code:
...ANSWER
Answered 2018-Sep-29 at 14:28Your RelativeLayout is null. Check out the lines in parentheses in your code.
QUESTION
I searched a lot on google and stackoverflow i got this error
E/Minikin: addFont failed to create font /system/fonts/NanumGothic.ttf in fragment and fragment reloaded after that
please help me for this?I am taking runtime permission after the allow button fragment reloaded.
...ANSWER
Answered 2017-Jan-24 at 11:20 if (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP) {
verifyStoragePermissions(this);
}
public static void verifyStoragePermissions(Activity activity) {
// Check if we have read or write permission
int writePermission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);
int readPermission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.READ_EXTERNAL_STORAGE);
if (writePermission != PackageManager.PERMISSION_GRANTED || readPermission != PackageManager.PERMISSION_GRANTED) {
// We don't have permission so prompt the user
ActivityCompat.requestPermissions(
activity, PERMISSIONS_STORAGE, REQUEST_EXTERNAL_STORAGE);
}
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install minikin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page