I have only two class first one is Apple and second one is Banana. When I run the program and webcam works it gives output as Apple but there is not any Apple in frame, There is only me in the frame how can I fix this error?
Hi, There I made a little modification in the code which I have already discussed in the last part of the video about the same problem faced by you. I would recommend you to run my code which I have posted on GitHub respiratory (link in description). Hope your problem will be solved.
raise TypeError( TypeError: Error when deserializing class 'DepthwiseConv2D' using config={'name': 'expanded_conv_depthwise', 'trainable': True, 'dtype': 'float32', 'kernel_size': [3, 3], 'strides': [1, 1], 'padding': 'same', 'data_format': 'channels_last', 'dilation_rate': [1, 1], 'groups': 1, 'activation': 'linear', 'use_bias': False, 'bias_initializer': {'class_name': 'Zeros', 'config': {}}, 'bias_regularizer': None, 'activity_regularizer': None, 'bias_constraint': None, 'depth_multiplier': 1, 'depthwise_initializer': {'class_name': 'VarianceScaling', 'config': {'scale': 1, 'mode': 'fan_avg', 'distribution': 'uniform', 'seed': None}}, 'depthwise_regularizer': None, 'depthwise_constraint': None}. Exception encountered: Unrecognized keyword arguments passed to DepthwiseConv2D: {'groups': 1} I'm getting this kind of errors, I think there is some problem with keras or tensorflow packages. Could you please provide the version for packages?
What version of tensorFlow/Keras does teachable machine use. When i have follow all the step of your video after running the code it haven show this message "Exception encountered: Unrecognized keyword arguments passed to DepthwiseConv2D: {'groups': 1}" can you tell me what's the problem mainy happeded
Hi. I got the same problem and I fixed it by installing lower version of tensorflow (You need 2.15.1 instead of the 2.17... , because the recent version of tensorflow use keras 3 instead of keras 2, and the website in this video train the model refering to keras 2)
Cannot find reference 'models' in '_ Init.py':3 Unresolved reference 'load_model' :3 [From the 3rd line] I am getting this error pls help bro. I tried installing tensor flow but not working.
It looks like you are having trouble with the TensorFlow Lite model conversion step. Here are some general tips for troubleshooting TensorFlow Lite model conversion errors: Make sure you have the latest version of TensorFlow installed. Check for typos in your code, especially in the model path or format specification. If you're using a custom model, make sure it's compatible with TensorFlow Lite. Try converting your model to a different format, such as TFLite SavedModel.
Chaliyeee jee eram bhabaii ekdin success pabii 😊♥️
Nice Anshu Da
Daaruunnn👏👏👏
I really appreciate it Bro, thank you 😀
Happy to help
@@angshuofficial2214how can I use this model in app?
Bravooo!!✨❤️
Wow
Sir very thank it's working
Welcome
good
what version of pycharm did you use to run this code?
I have only two class first one is Apple and second one is Banana. When I run the program and webcam works it gives output as Apple but there is not any Apple in frame, There is only me in the frame how can I fix this error?
Hi, There I made a little modification in the code which I have already discussed in the last part of the video about the same problem faced by you.
I would recommend you to run my code which I have posted on GitHub respiratory (link in description).
Hope your problem will be solved.
github.com/CretivityArt/Custom-Object-Detection-Using-Python-OpenCV--Training-Database-using-TeachableMachine
sir im done following all the steps you 're giving but still can't run the code its giving an error
sir used the github code with the label files together but still can't run the code please help me sir
Giving an error with visual studio software, will it works only on pycharm? or is there any particular versions for keras libraries to work properly?
There could be problem with some of the dependencies.
Pls DM me the screenshot of the error to solve your problem
raise TypeError(
TypeError: Error when deserializing class 'DepthwiseConv2D' using config={'name': 'expanded_conv_depthwise', 'trainable': True, 'dtype': 'float32', 'kernel_size': [3, 3], 'strides': [1, 1], 'padding': 'same', 'data_format': 'channels_last', 'dilation_rate': [1, 1], 'groups': 1, 'activation': 'linear', 'use_bias': False, 'bias_initializer': {'class_name': 'Zeros', 'config': {}}, 'bias_regularizer': None, 'activity_regularizer': None, 'bias_constraint': None, 'depth_multiplier': 1, 'depthwise_initializer': {'class_name': 'VarianceScaling', 'config': {'scale': 1, 'mode': 'fan_avg', 'distribution': 'uniform', 'seed': None}}, 'depthwise_regularizer': None,
'depthwise_constraint': None}.
Exception encountered: Unrecognized keyword arguments passed to DepthwiseConv2D: {'groups': 1}
I'm getting this kind of errors, I think there is some problem with keras or tensorflow packages. Could you please provide the version for packages?
@@SanthoshShetty-cm9df same above error I am also getting...what to do? Plz reply
@@sachinjojare2106 Check with the dependencies properly, it will work only with 3.9 python compiler and 2.12.0 keras libraries
Do you know how to add bounding box to your code?
is it possible to draw the bounding box of the detection?
I am also working on that. It could be a bit tricky. You may use yolo V3 for that
What version of tensorFlow/Keras does teachable machine use. When i have follow all the step of your video after running the code it haven show this message
"Exception encountered: Unrecognized keyword arguments passed to DepthwiseConv2D: {'groups': 1}"
can you tell me what's the problem mainy happeded
The same problem
Hi. I got the same problem and I fixed it by installing lower version of tensorflow (You need 2.15.1 instead of the 2.17... , because the recent version of tensorflow use keras 3 instead of keras 2, and the website in this video train the model refering to keras 2)
There is an issue in the code please update the code asap
What issues do you faced ?
How can i use this model in app?
Nice and useful video. Can I extract the accuracy of this model or not?
Yes you can by clicking downloading the source code from my GitHub channel. In this video I covered the topic
13:25
@@angshuofficial2214 I mean the overall accuracy of the model
Can i perform this with java?
Yes you can. I will try to make a tutorial based on it.
hi can you provide requirements.txt
which includes the python version, modules version.
it would be very helpful
Error loading model: Error when deserializing class 'DepthwiseConv2D' using config={'name': 'expanded_conv_depthwise', 'trainable': True, 'dtype': 'float32', 'kernel_size': [3, 3], 'strides': [1, 1], 'padding': 'same', 'data_format': 'channels_last', 'dilation_rate': [1, 1], 'groups': 1, 'activation': 'linear', 'use_bias': False, 'bias_initializer': {'class_name': 'Zeros', 'config': {}}, 'bias_regularizer': None, 'activity_regularizer': None, 'bias_constraint': None, 'depth_multiplier': 1, 'depthwise_initializer': {'class_name': 'VarianceScaling', 'config': {'scale': 1, 'mode': 'fan_avg', 'distribution': 'uniform', 'seed': None}}, 'depthwise_regularizer': None, 'depthwise_constraint': None}.
please help me out
Recheck the file location. Try to download the model again and include the path correctly in the program
Sir showing me error like want to download tensor flow
try running pip install transferflow
Bro, after using this code and process, your project is working or not? Please reply 🙏
Yes it's working fine.
I am getting error while I was running this code, issue with model it is not loading and file not found error
I was using vs code and python
Try to download the trained model again. With proper file adress
Can I use esp32 web server?
How also, sir
Yes using micro python
But instead you may use raspberry pi zero
Cannot find reference 'models' in '_ Init.py':3
Unresolved reference 'load_model' :3
[From the 3rd line]
I am getting this error pls help bro.
I tried installing tensor flow but not working.
Dear please check the fileName of f the downloaded model and it is recommended to download the file again.
raise TypeError(
TypeError: Error when deserializing class 'DepthwiseConv2D' using config={'name': 'expanded_conv_depthwise', 'trainable': True, 'dtype': 'float32', 'kernel_size': [3, 3], 'strides': [1, 1], 'padding': 'same', 'data_format': 'channels_last', 'dilation_rate': [1, 1], 'groups': 1, 'activation': 'linear', 'use_bias': False, 'bias_initializer': {'class_name': 'Zeros', 'config': {}}, 'bias_regularizer': None, 'activity_regularizer': None, 'bias_constraint': None, 'depth_multiplier': 1, 'depthwise_initializer': {'class_name': 'VarianceScaling', 'config': {'scale': 1, 'mode': 'fan_avg', 'distribution': 'uniform', 'seed': None}}, 'depthwise_regularizer': None,
'depthwise_constraint': None}.
Exception encountered: Unrecognized keyword arguments passed to DepthwiseConv2D: {'groups': 1} Sir Plz sort out my error what to do?
Have you used the code given in my GitHub page ?
It looks like you are having trouble with the TensorFlow Lite model conversion step.
Here are some general tips for troubleshooting TensorFlow Lite model conversion errors:
Make sure you have the latest version of TensorFlow installed.
Check for typos in your code, especially in the model path or format specification.
If you're using a custom model, make sure it's compatible with TensorFlow Lite.
Try converting your model to a different format, such as TFLite SavedModel.
@@angshuofficial2214 I have copied code as per teachable machine