Human Activity Recognition in Android || Tensorflow Android || Developers Hutt

Поділитися
Вставка
  • Опубліковано 11 січ 2025
  • In this video, you'll learn to train a machine learning model from scratch using Tensorflow and Keras on Smartphone sensor data to predict the physical activity of a person.
    And you'll also learn to deploy it on an Android device using Java in Android Studio that works offline.
    There are so many things ahead. So keep updated on: developershutt
    Android App for recording your own dataset: github.com/dev...
    Link to download dataset: www.utwente.nl...
    Source code for model training: github.com/man...
    Source code for Android App: github.com/man...
    Please leave your feedback and if you have any topic related to machine learning, Deep Learning, Android, or Mathematics please let me know in the comments.
    Thanks
    ~-~~-~~~-~~-~
    Please watch: "Modern/Best Resume for Programmers"
    • Modern/Best Resume for...
    ~-~~-~~~-~~-~

КОМЕНТАРІ • 163

  • @eeindepth6649
    @eeindepth6649 3 роки тому

    You have so much of knowledge in this age. Great man . Keep going

  • @chrisogonas
    @chrisogonas 3 роки тому +1

    WOW, man, your video is such a tremendous resource. Many thanks putting this together.

  • @jjjjj-bl7md
    @jjjjj-bl7md 3 роки тому +3

    I'm having a hard time doing freeze_graph. I'm getting an 'IndexError: list index out of range' error and I don't know what the problem is.

    • @DevelopersHutt
      @DevelopersHutt  3 роки тому

      Overfitted model

    • @furqansiddiqui5765
      @furqansiddiqui5765 2 роки тому

      @@DevelopersHutt how to solve this

    • @DevelopersHutt
      @DevelopersHutt  2 роки тому

      @@furqansiddiqui5765 it's a version conflict I think.
      Train your model using TF 1.13 and save it using TF 1.8

  • @amirhosseinjoghataei2390
    @amirhosseinjoghataei2390 3 роки тому

    wow, amazing. you help me so much in this field, ty

  • @EilhamVlogs
    @EilhamVlogs 3 роки тому +1

    for the result in predictActivity, how do you know the order of the array to be [biking, downstairs, jogging, sitting, standing, upstairs, walking] ?

    • @DevelopersHutt
      @DevelopersHutt  3 роки тому

      The same order you've used while training should be used while inferencing in Android

  • @gb5y
    @gb5y 4 роки тому +1

    thanks man , very helpful , keep up the good work

  • @hukumsaini9864
    @hukumsaini9864 2 роки тому +1

    Hi i am looking for a deep learning expert for developing a model for yoga pose estimation and correction feedback for my Phd work. Can you help me out.

  • @shahanama9360
    @shahanama9360 3 роки тому +1

    Hi, Could you please elaborate more at merging point of two participants, when the time series data is generating?

    • @shahanama9360
      @shahanama9360 3 роки тому

      If I want to merge dataset on accelerometer and gyroscope from different sources to get information over more activities together, then if I just merge evrything together, how can I make windows from that.?
      Or if we make windows, extract features from each dataset seperately., then just merge one after another , Will it be right procedure?
      Or am I missing any concept??

    • @DevelopersHutt
      @DevelopersHutt  3 роки тому

      The merging I've performed in the video because the data was collected from 8 different android devices. But the structure of the datasets are same (columns). Hence I merged it as it was. So if you want to merge the data different sources, you've to put right values in right column. That's it.

  • @riti1217
    @riti1217 2 роки тому

    What exact version of tensorflow,keras have to use
    As in vdo it specified some diff as in git link it's different?

  • @IITkianVijay
    @IITkianVijay 3 роки тому +1

    It is really a great project.
    Thank you so much.
    But one thing is contradicting because you said that this data is Time Series Data and on the other hand you are dropping time column why?
    And Suppose I want to merge data from other sources which contain accelorometer and gyroscope can I merge because that data has different time stamp and extra activities if yes then please let us know and if not then why???
    I hope to get reply by tomorrow as soon as possible thank you once more

    • @DevelopersHutt
      @DevelopersHutt  3 роки тому

      The dropped columns contained values from sensor which my device doesn't has. That's why I dropped them.
      Offcourse you can append new data into old data. The old dataset contains raw values from sensor so you just need to remember that only raw values can ve appended.

  • @furquananwer1844
    @furquananwer1844 2 роки тому

    'The file was loaded in a wrong encoding 'UTF-8'. This error shows up when I try to open model.pb file. Why ?

  • @SantoshKumar-jg1iz
    @SantoshKumar-jg1iz 4 роки тому

    Very nice keep it up 👍

  • @shirishamaddala4505
    @shirishamaddala4505 2 роки тому

    sir can you please help mee i'm getting a value error while dataset into time series sequence?

  • @saminsanity4766
    @saminsanity4766 Рік тому +1

    Hello, in this project, why is the value the highest for jogging only? Is there any way to remove this error?

    • @DevelopersHutt
      @DevelopersHutt  Рік тому

      This model was trained on collected data from my old device. And just because sensor calibrations are different, it showings jogging as highest prob. You can collect you own data and retrain the model to get it fixed

  • @timiokusi
    @timiokusi 9 місяців тому

    Hello brother, I am following your video but I am getting an error with the lstm layer which says no op kernel supports the op clipbyvalue in android studio. Would really appreciate if we can discuss and I can share this with you cos mine is for a fall detection. I am doing this for a uni project. Please help, thanks

    • @DevelopersHutt
      @DevelopersHutt  9 місяців тому

      Are you using the same tensorflow version as I did in android?

  • @simonmohapatra5193
    @simonmohapatra5193 10 місяців тому

    hey am getting this errror:Failed to run TensorFlow inference with inputs:[lstm_1_input], outputs:[output/Softmax] while running the code in android studio could someone help me?

    • @DevelopersHutt
      @DevelopersHutt  9 місяців тому

      Are you using the same tensorflow version as I did in android?

  • @furquananwer1844
    @furquananwer1844 2 роки тому

    While running this code - -
    tf.train.write_graph(k.get_session().graph_def,'models',model_name + '_graph.pbtxt')
    saver=tf.train.Saver()
    saver.save(k.get_session(),'models/'+model_name+'.chkp')
    I get the following error ----
    module 'tensorflow._api.v2.io' has no attribute 'train'
    I am using tensorflow 2.7.0. It has something to do with the version ? Please help me fix it.

  • @AnuHM1997
    @AnuHM1997 Місяць тому

    How to collect dataset using the given app

  • @furquananwer1844
    @furquananwer1844 2 роки тому

    One more thing in your github codes, you have used tensorflow 2.3 in for the training model but in android studio, you are using tensorflow 1.8. Isn't there any compatibility issue ?

  • @ehtshamshahbaz9919
    @ehtshamshahbaz9919 4 роки тому

    Sir, please explain what type of machine learning algorithm you are using.

  • @izdiharamiro1462
    @izdiharamiro1462 2 роки тому

    Hi sir, thank for the sharing. I have a question, how to add sensitivity and specificity in the coding?

    • @DevelopersHutt
      @DevelopersHutt  2 роки тому

      I didn't get it. What does that mean "add sensitivity"

    • @izdiharamiro1462
      @izdiharamiro1462 2 роки тому

      @@DevelopersHutt it’s the trio performance evaluation for machine learning. Usually people will include accuracy,sensitivity and specificity together in their machine learning performance results.

  • @AnuHM1997
    @AnuHM1997 Місяць тому

    Will it show correct output as walking if I hold phone in hand walk

    • @DevelopersHutt
      @DevelopersHutt  Місяць тому

      The model trained in the video was on a dummy dataset just to demonstrate how it can be done. If you collect dataset of doing activities while holding a phone in your hands and train a model like you saw in the video. It will work!

  • @SoorajRS-h8z
    @SoorajRS-h8z 9 місяців тому

    can you help me in finding another dataset of same project
    because this output mostly to jogging only

    • @DevelopersHutt
      @DevelopersHutt  9 місяців тому

      I got that dataset from kaggle. Not sure if there is an update one as well .

  • @omolala9832
    @omolala9832 2 роки тому

    Hi Sir, Thanks a lot for the great tutorial. I follow your GitHub repo to save the model on Tensorflow version 2. Could you please help me to know the input and output nodes' names on your GitHub repo codes? I need to deploy on android. Thank you

  • @umutsenol2649
    @umutsenol2649 3 роки тому +1

    Hİ, thanks a lot for this great project from scratch. I really enjoyed your video and your detailed github repo. I have a question. I have installed your apk to test the model and the project, but as it shows in your video it almost always show the jogging in high probability. I have created the model in python thanks to you, but when I checked your apk, the results are almost wrong! what would be the problem? is the model you use in project is wrong?

    • @DevelopersHutt
      @DevelopersHutt  3 роки тому

      It might be problem of sensor calibration

    • @shubhi9540
      @shubhi9540 3 роки тому +1

      @@DevelopersHutt Thank you for this amazing project!!. But it always shows jogging while sitting or doing any other activity. Can you please resolve the issue and update the repo?? It would be of great help.

    • @DevelopersHutt
      @DevelopersHutt  3 роки тому +1

      @@shubhi9540 Thank you for thr feedback. I will try to resolve it ASAP

    • @aseelsm3375
      @aseelsm3375 2 роки тому +1

      @@DevelopersHutt did this problem is solved?

    • @riti1217
      @riti1217 2 роки тому

      Same problem? How to resolve

  • @raffaulislam7423
    @raffaulislam7423 7 місяців тому

    Is this project compatible with the wear os? I mean can this project be built for the wearable devices?

  • @sharcodes
    @sharcodes 2 роки тому

    A Dumb question did you use Keras Classifier?

  • @sagarsutar7318
    @sagarsutar7318 4 роки тому +1

    Good work!!

  • @Falguni.R
    @Falguni.R 3 роки тому

    Sir this project is really interesting, can you please specify which version of python have you used in the virtual envionment?

    • @DevelopersHutt
      @DevelopersHutt  3 роки тому +1

      Python 3.6

    • @Falguni.R
      @Falguni.R 3 роки тому

      @@DevelopersHutt Thank you sir ..Great work 👍👍

    • @Falguni.R
      @Falguni.R 3 роки тому

      is it necessary that numpy version should be 1.14 only? because the numpy version is clashing with other requirements version

    • @DevelopersHutt
      @DevelopersHutt  3 роки тому

      @@Falguni.R it executed on my pc on that version that's why I suggested only.
      But if you want you can change version according to the other dependencies you have. It's absolutely not a big deal

    • @Falguni.R
      @Falguni.R 3 роки тому

      @@DevelopersHutt okay ..that means it won't affect the final output sir if I do so ?

  • @furquananwer1844
    @furquananwer1844 2 роки тому

    When I click on Run, my app just starts and closes instantly and when I click on Logcat, it does not show the activities. What could be the possible reason ? I have followed all your steps.

    • @DevelopersHutt
      @DevelopersHutt  2 роки тому

      What's the error when app crashes

    • @furquananwer1844
      @furquananwer1844 2 роки тому

      Caused by: java.io.IOException: Not a valid TensorFlow Graph serialization: NodeDef expected inputs 'variant' do not match 2 inputs specified; Op tensor:element_dtype; attr=element_dtype:type; attr=num_elements:int,default=-1>; NodeDef: sequential/lstm_1/PartitionedCall/TensorArrayV2Stack/TensorListStack = TensorListStack[element_dtype=DT_FLOAT, num_elements=-1](sequential/lstm_1/PartitionedCall/while/exit/_51, sequential/lstm_1/PartitionedCall/TensorArrayV2Stack/TensorListStack/element_shape)
      at org.tensorflow.contrib.android.TensorFlowInferenceInterface.loadGraph(TensorFlowInferenceInterface.java:561)
      at org.tensorflow.contrib.android.TensorFlowInferenceInterface.(TensorFlowInferenceInterface.java:105)
      at com.developershutt.har.ActivityClassifier.(ActivityClassifier.java:23)
      at com.developershutt.har.MainActivity.onCreate(MainActivity.java:53)
      at android.app.Activity.performCreate(Activity.java:7088)
      at android.app.Activity.performCreate(Activity.java:7079)
      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)
      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2895)
      at android.app.ActivityThread.-wrap11(Unknown Source:0)
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1616)
      at android.os.Handler.dispatchMessage(Handler.java:106)
      at android.os.Looper.loop(Looper.java:176)
      at android.app.ActivityThread.main(ActivityThread.java:6651)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)
      2022-04-04 23:43:37.090 9560-9560/com.developershutt.har I/Process: Sending signal. PID: 9560 SIG: 9

    • @furquananwer1844
      @furquananwer1844 2 роки тому

      Also, when I open model.pb file in Android Studio, it shows incorrect file encoding 'UTF-8'. Are these errors because of the model.pb file?

    • @beganas1472
      @beganas1472 2 роки тому

      @@furquananwer1844 I am also facing the same problem bro

    • @beganas1472
      @beganas1472 2 роки тому

      ​ @Developers Hutt please reply

  • @aroojahmed1540
    @aroojahmed1540 3 роки тому

    very helpful. ONE ERROR : while freezing the model (last task on jupyter notebook), i get this error : ''IndexError: list index out of range'
    I have matched the tensorflow version as yours but the error persists. Please guide.

    • @DevelopersHutt
      @DevelopersHutt  3 роки тому

      Please switch to tf 1.14.0 and try again

    • @chiyedza9590
      @chiyedza9590 3 роки тому

      @@DevelopersHutt Hi I am facing the same issue with the error 'IndexError: list index out of range' when running the final line of code. I have switched to tf 1.14 as suggested, but still not working. Please provide any help

    • @DevelopersHutt
      @DevelopersHutt  3 роки тому

      That's weird! Please send me your notebook at huttofdevelopers@gmail.com

    • @chiyedza9590
      @chiyedza9590 3 роки тому

      @@DevelopersHutt I have sent my notebook via email and we may chat there. Thank you very much

    • @furqansiddiqui5765
      @furqansiddiqui5765 2 роки тому

      @@chiyedza9590 what was the solution?
      Kindly help

  • @shaiktauheerahamed2040
    @shaiktauheerahamed2040 3 роки тому

    the dataset link doesnt have any data in it

  • @adamheinrich8322
    @adamheinrich8322 4 роки тому +1

    what android phone are you using? Mine log tells that sensor is null.

    • @DevelopersHutt
      @DevelopersHutt  4 роки тому

      Motorola moto G5S Plus

    • @adamheinrich8322
      @adamheinrich8322 4 роки тому +1

      @@DevelopersHutt why is the prediction always wrong? most of the time it tells "jogging" although im sittin'..

    • @DevelopersHutt
      @DevelopersHutt  4 роки тому

      @Adam Heinrich Check if the labels are in position where it should be. Like maybe you put jogging label in place of sitting. Also do some feature engineering or try out different dataset. There are more dataset on internet on Human Activity Recognition.

    • @adamheinrich8322
      @adamheinrich8322 4 роки тому

      What does IT mean feature engineering?

    • @adamheinrich8322
      @adamheinrich8322 4 роки тому

      I used yours model from guthub

  • @rishabhkesharwani8305
    @rishabhkesharwani8305 3 роки тому

    Amazing video

  • @abhishekc3556
    @abhishekc3556 2 роки тому

    Bhai ye machine learning and deep learning kaha se karu?? Merko itna karna hai ki aapka video samajh pau.
    Ml aata hai thoda bohot. Basic algorithms ke working and numpy pandas sab aate hain. Ye aapne jo deep learning use kia hai iss video mei.. where do i learn that??

    • @DevelopersHutt
      @DevelopersHutt  2 роки тому

      Agar basic machine learning aati h (jaise Linear Regression, Logistic Regression, SVM etc) to fir ye book best hogi Deep Learning start karne k liye.
      1. Hands-on Machine Learning with Scikit Learn and Tensorflow
      Buy link: amzn.to/3CEoaId

    • @abhishekc3556
      @abhishekc3556 2 роки тому

      @@DevelopersHutt thank you sir

  • @AnuHM1997
    @AnuHM1997 2 місяці тому

    Can you plz tell how does it work and how it shows output

    • @AnuHM1997
      @AnuHM1997 2 місяці тому

      Like if I am holding my phone and walking will it detect and show walking as output

  • @rakshant7807
    @rakshant7807 2 роки тому

    Java.lang.Runtime Exception:failed to load model from ‘model.pb’
    SOLUTION?

  • @abhiroopsaha19
    @abhiroopsaha19 3 роки тому

    What input you are giving to the android app?

    • @DevelopersHutt
      @DevelopersHutt  3 роки тому

      Values from accelerometer and gyroscope sensor

    • @abhiroopsaha19
      @abhiroopsaha19 3 роки тому

      @@DevelopersHutt How can I check where the results are correct or not?Is there a way to enter raw data and check?/

  • @abhishekc3556
    @abhishekc3556 2 роки тому

    Bhaiyya mene sab kuch kia video ke according. Mene apk build kia and wo install bhi hogaya mere device mei but app crash ho raha. It doesn't open.
    Android version : android 12

    • @abhishekc3556
      @abhishekc3556 2 роки тому

      Bhaiyya please help kardijiye. Final year project yahi kar raha mei and agar app nahi chala toh kaafi dikkat hojaegi

    • @DevelopersHutt
      @DevelopersHutt  2 роки тому

      Koi permission ka error hoga. Logs send karo ho sake to.
      To stackoverflow pe post karke share kar do yaha

    • @abhishekc3556
      @abhishekc3556 2 роки тому

      @@DevelopersHutt
      2022-04-20 15:45:34.951 3169-3169/com.developershutt.har E/TensorFlowInferenceInterface: Failed to run TensorFlow inference with inputs:[lstm_1_input], outputs:[output/Softmax]
      2022-04-20 15:45:34.952 3169-3169/com.developershutt.har E/SensorManager: Exception dispatching input event.
      2022-04-20 15:45:34.952 3169-3169/com.developershutt.har D/AndroidRuntime: Shutting down VM


      --------- beginning of crash
      2022-04-20 15:45:34.953 3169-3169/com.developershutt.har E/AndroidRuntime: FATAL EXCEPTION: main
      Process: com.developershutt.har, PID: 3169
      java.lang.IllegalArgumentException: No OpKernel was registered to support Op 'ClipByValue' with these attrs. Registered devices: [CPU], Registered kernels:


      [[Node: lstm_1/while/clip_by_value = ClipByValue[T=DT_FLOAT](lstm_1/while/add_2, lstm_1/while/Const, lstm_1/while/Const_1)]]
      at org.tensorflow.Session.run(Native Method)
      at org.tensorflow.Session.access$100(Session.java:48)
      at org.tensorflow.Session$Runner.runHelper(Session.java:298)
      at org.tensorflow.Session$Runner.run(Session.java:248)
      at org.tensorflow.contrib.android.TensorFlowInferenceInterface.run(TensorFlowInferenceInterface.java:228)
      at org.tensorflow.contrib.android.TensorFlowInferenceInterface.run(TensorFlowInferenceInterface.java:197)
      at org.tensorflow.contrib.android.TensorFlowInferenceInterface.run(TensorFlowInferenceInterface.java:187)
      at com.developershutt.har.ActivityClassifier.predictProbabilities(ActivityClassifier.java:29)
      at com.developershutt.har.MainActivity.predictActivity(MainActivity.java:113)
      at com.developershutt.har.MainActivity.onSensorChanged(MainActivity.java:88)
      at android.hardware.SystemSensorManager$SensorEventQueue.dispatchSensorEvent(SystemSensorManager.java:837)
      at android.os.MessageQueue.nativePollOnce(Native Method)
      at android.os.MessageQueue.next(MessageQueue.java:336)
      at android.os.Looper.loop(Looper.java:174)
      at android.app.ActivityThread.main(ActivityThread.java:7356)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

    • @abhishekc3556
      @abhishekc3556 2 роки тому

      this is the error log bhaiyya. pls dekh lijiye

    • @DevelopersHutt
      @DevelopersHutt  2 роки тому

      Kaha hai?

  • @SoorajRS-h8z
    @SoorajRS-h8z 11 місяців тому

    i am using anaconda navigator were do i put my dataset file for the code to work

    • @DevelopersHutt
      @DevelopersHutt  11 місяців тому +1

      At same path where your code exists

    • @SoorajRS-h8z
      @SoorajRS-h8z 10 місяців тому

      @@DevelopersHutt you are taking only values in left and right pocket if the girls are using they does not wear a pants with pockets how does the sensors detect their actiivty

    • @DevelopersHutt
      @DevelopersHutt  10 місяців тому +1

      @@SoorajRS-h8z that was just a demo about how you can build such system. For the real world, you have to collect diverse amounts of data to train the model.
      This data would not be enough

  • @IITkianVijay
    @IITkianVijay 3 роки тому

    OSError: Input graph file 'models/har_model_graph.pbtx' does not exist!
    THE LAST CELL OF JUPYTER NOTEBOOK RAISING ERROR PLEASE REPLY all things worked fine but at last cell of jupyter I am getting error please tell me how to fix it ..................
    ### freeze_graph.freeze_graph('models/'+model_name + '_graph.pbtx',None, False,'models/'+model_name+'.chkp',
    output_node_name,'save/restore_all','save/Const:0','models/frozen_' + model_name + '.pb', True,"") ###

  • @padmavathipalakala5106
    @padmavathipalakala5106 4 роки тому

    can we find time between Activities?

  • @Dheerajsingh0509
    @Dheerajsingh0509 4 роки тому +1

    Why it's shows jogging while u sitting

    • @DevelopersHutt
      @DevelopersHutt  4 роки тому

      I've custom rom in my device and the sensor wasn't calibrated correctly.

  • @md.hafizurrahman5590
    @md.hafizurrahman5590 4 роки тому

    error : "failed to load model from model.pb"
    how to fix this error? :(

    • @DevelopersHutt
      @DevelopersHutt  4 роки тому

      Make sure you put protobuffer file (filename.pb) on the location mentioned in function.

    • @md.hafizurrahman5590
      @md.hafizurrahman5590 4 роки тому

      @@DevelopersHutt I can't install tensorflow 1.13.1
      Is it possible to run this code with tensorflow 2.3.0 ?

    • @DevelopersHutt
      @DevelopersHutt  4 роки тому

      @@md.hafizurrahman5590 no actually.
      Still you've 2 ways to run the code
      1. if you want to run code on tf 2+ than tensorflow has a converter that will convert tf 1 source code to tf 2 equivalent.
      2. Create a virtual environment using venv and install tf 1.13.1 there. It won't affect anything outside environment.

    • @md.hafizurrahman5590
      @md.hafizurrahman5590 4 роки тому

      @@DevelopersHutt I need your help. May I get your Skype ID?

    • @md.hafizurrahman5590
      @md.hafizurrahman5590 4 роки тому

      @@DevelopersHutt I trained model on tensorflow 2.2.0 version and freeze graph into model.pb file. then store this model.pb file into assets folder. But it shows same error "failed to load model from model.pb"

  • @adamheinrich8322
    @adamheinrich8322 4 роки тому

    I have an error while running
    freeze_graph.freeze_graph('models/'+model_name + '_graph.pbtxt', None, False, 'models/'+model_name+'.chkp',
    output_node_name, 'save/restore_all', 'save/Const:0', 'models/frozen_' + model_name + '.pb', True, "")
    stackoverflow.com/questions/64418331/cannot-run-the-method-freeze-graph-index-out-of-range
    I described it here,could you help?
    I trained this model once and I succesfully exported it to Android,don't get the mistake now. Thanks

    • @DevelopersHutt
      @DevelopersHutt  4 роки тому

      I've gone through it. Please post complete error you've got

    • @adamheinrich8322
      @adamheinrich8322 4 роки тому

      @@DevelopersHutt here?

    • @DevelopersHutt
      @DevelopersHutt  4 роки тому

      Would be better if you post on stackoverflow

    • @adamheinrich8322
      @adamheinrich8322 4 роки тому +1

      @@DevelopersHutt stackoverflow.com/questions/64418331/cannot-run-the-method-freeze-graph-index-out-of-range
      I have updated the post,whole error is now shown.

    • @adamheinrich8322
      @adamheinrich8322 4 роки тому

      @@DevelopersHutt can you notice mine mistake?

  • @SuperNiks143
    @SuperNiks143 4 роки тому

    While freezing Model it shows FailedPreconditionError

    • @DevelopersHutt
      @DevelopersHutt  4 роки тому +1

      Which version of tensor flow you're using??

    • @SuperNiks143
      @SuperNiks143 4 роки тому

      ​@@DevelopersHutt​1.13.1
      now issue has been solved. package was not installed properly due to conflict

    • @SuperNiks143
      @SuperNiks143 4 роки тому

      @@DevelopersHutt Thank you Great work :)

    • @DevelopersHutt
      @DevelopersHutt  4 роки тому

      My pleasure, Stay tune for more 🙏

  • @abhishekc3556
    @abhishekc3556 2 роки тому

    bhaiyya android development kaha se seekhu?

    • @DevelopersHutt
      @DevelopersHutt  2 роки тому

      Intro k liye ye video follow kar lo
      ua-cam.com/video/fis26HvvDII/v-deo.html
      Per fir Android official Docs se start kar do agar ache se seekhna h to. Usse best resource shayad koi ni h.

  • @lakshmialekhyaalekya2788
    @lakshmialekhyaalekya2788 2 роки тому

    how to download this project

    • @DevelopersHutt
      @DevelopersHutt  2 роки тому

      Link to the source code is given in description

  • @riti1217
    @riti1217 2 роки тому

    Can you please share the dataset file

    • @DevelopersHutt
      @DevelopersHutt  2 роки тому

      Didn't you find anything in the link??

    • @riti1217
      @riti1217 2 роки тому

      @@DevelopersHutt no...in github it's not showing

    • @DevelopersHutt
      @DevelopersHutt  2 роки тому

      Hey Riti, I've uploaded the dataset on Drive and you can download that from here : bit.ly/3r0IBuh

    • @riti1217
      @riti1217 2 роки тому

      @@DevelopersHutt what is df.Ax ,df.Ay and df.Az...its showing error that datafram doesn't hav Ax attributes

    • @riti1217
      @riti1217 2 роки тому

      Send the participants dataset that you used...this showing some errors

  • @AnuHM1997
    @AnuHM1997 2 місяці тому

    Is this real time project

  • @josueferri
    @josueferri 2 роки тому

    All the steps work well until the fit_generator. Does anyone have idea how to solve it? Thanks
    /usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:1: UserWarning: `Model.fit_generator` is deprecated and will be removed in a future version. Please use `Model.fit`, which supports generators.
    """Entry point for launching an IPython kernel.
    ---------------------------------------------------------------------------
    KeyError Traceback (most recent call last)
    in ()
    ----> 1 history=model.fit_generator(train_gen, epochs=5, validation_data=test_gen, callbacks=callbacks)
    2
    3 frames
    /usr/local/lib/python3.7/dist-packages/keras/engine/training.py in fit_generator(self, generator, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, validation_freq, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch)
    2221 use_multiprocessing=use_multiprocessing,
    2222 shuffle=shuffle,
    -> 2223 initial_epoch=initial_epoch)
    2224
    2225 @doc_controls.do_not_generate_docs
    /usr/local/lib/python3.7/dist-packages/keras/utils/traceback_utils.py in error_handler(*args, **kwargs)
    65 except Exception as e: # pylint: disable=broad-except
    66 filtered_tb = _process_traceback_frames(e.__traceback__)
    ---> 67 raise e.with_traceback(filtered_tb) from None
    68 finally:
    69 del filtered_tb
    /usr/local/lib/python3.7/dist-packages/pandas/core/frame.py in __getitem__(self, key)
    3456 if self.columns.nlevels > 1:
    3457 return self._getitem_multilevel(key)
    -> 3458 indexer = self.columns.get_loc(key)
    3459 if is_integer(indexer):
    3460 indexer = [indexer]
    /usr/local/lib/python3.7/dist-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
    3361 return self._engine.get_loc(casted_key)
    3362 except KeyError as err:
    -> 3363 raise KeyError(key) from err
    3364
    3365 if is_scalar(key) and isna(key) and not self.hasnans:
    KeyError: 100

    • @DevelopersHutt
      @DevelopersHutt  2 роки тому

      Which tensorflow and keras version you're using