Row 6554
Content Data
This page contains data entry 6554 from the Axioma AXP content repository. The structured data below represents the complete record for this entry.
Hello, My project is a face recognition system using tensorflow. I have fine-tuned the ConvNeXt model on my dataset and I am using streamlit to deploy the application. However, When loading the saved .h5 model there are errors that appear and I cant get the streamlit to work. When I run the code provided, I receive this error: Unknown layer: 'LayerScale'. Please ensure you are using a `keras.utils.custom_object_scope` and that this object is included in the scope. See [https://www.tensorflow.org/guide/keras/save\_and\_serialize#registering\_the\_custom\_object](https://www.tensorflow.org/guide/keras/save_and_serialize#registering_the_custom_object) for details. After doing some digging around, I found a similar error on stackoverflow and copied the LayerScale class from the source code and added it into mine(3rd screenshot). Now I am facing this error: 'TFOpLambda'. Please ensure you are using a `keras.utils.custom_object_scope` and that this object is included in the scope. See [https://www.tensorflow.org/guide/keras/save\_and\_serialize#registering\_the\_custom\_object](https://www.tensorflow.org/guide/keras/save_and_serialize#registering_the_custom_object) for details.
There are also other errors and warnings that appear in the terminal and I wonder what do they mean: "I tensorflow/core/util/port.cc:113\] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`." and "The name tf.reset\_default\_graph is deprecated. Please use tf.compat.v1.reset\_default\_graph instead." Has anyone faced a problem like this before and what is the solution? Thanks in advance
code: [https://imgur.com/a/IBTjI7v](https://imgur.com/a/IBTjI7v)
| Field | Value |
|---|---|
| text | Hello, My project is a face recognition system using tensorflow. I have fine-tuned the ConvNeXt model on my dataset and I am using streamlit to deploy the application. However, When loading the saved .h5 model there are errors that appear and I cant get the streamlit to work. When I run the code provided, I receive this error: Unknown layer: 'LayerScale'. Please ensure you are using a `keras.utils.custom_object_scope` and that this object is included in the scope. See [https://www.tensorflow.… |
| label | r/tensorflow |
| dataType | post |
| communityName | r/tensorflow |
| datetime | 2024-05-11 |
| username_encoded | Z0FBQUFBQm5LakwyaGFZdFRNZTZDQzdJR25fTzZHMHl3bnltaXF1cVZPM1BzemdvREZOMG9rU0I1Zk85T3BzLXZtdXYzR0gxV0lieHpfTF94RlZ1UU41aEpWSTdxUDZOSGh1Ny1kRmZJN3UzZEZXbHZUYThJU289 |
| url_encoded | Z0FBQUFBQm5Lak9HZ3h2SXlkWGFUZ1l3UjZLWVB5ZHE0aWtLMEYtRkxoNEJzcVVFdDJpMm5DeFZ3QVBzcE4wUDZGbHlXUG1WeUphZzV1cEM4WlFTZHFranQ3dTBYQU93YS00aU9NTmRaaTFfcW9ERDhFZFFoX1YxZmpPVTgyc3dpT3NHYkZ0NllKdkFqUTRkbjJuT3ZNdFNnZHpUUjlOZVRKaGZCa2dnWXF4Q05nZ0t4ellpT0g1TllaREtjbHgxeHNTMjFkXzlaU3VMY0RrZVBIcnpyV3h6UWxiZHFBaXIyZz09 |
Raw Record
{
"text": "Hello, \nMy project is a face recognition system using tensorflow. I have fine-tuned the ConvNeXt model on my dataset and I am using streamlit to deploy the application. However, When loading the saved .h5 model there are errors that appear and I cant get the streamlit to work. When I run the code provided, I receive this error: Unknown layer: 'LayerScale'. Please ensure you are using a `keras.utils.custom_object_scope` and that this object is included in the scope. See [https://www.tensorflow.org/guide/keras/save\\_and\\_serialize#registering\\_the\\_custom\\_object](https://www.tensorflow.org/guide/keras/save_and_serialize#registering_the_custom_object) for details. After doing some digging around, I found a similar error on stackoverflow and copied the LayerScale class from the source code and added it into mine(3rd screenshot). Now I am facing this error: 'TFOpLambda'. Please ensure you are using a `keras.utils.custom_object_scope` and that this object is included in the scope. See [https://www.tensorflow.org/guide/keras/save\\_and\\_serialize#registering\\_the\\_custom\\_object](https://www.tensorflow.org/guide/keras/save_and_serialize#registering_the_custom_object) for details. \n\nThere are also other errors and warnings that appear in the terminal and I wonder what do they mean: \"I tensorflow/core/util/port.cc:113\\] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.\" and \"The name tf.reset\\_default\\_graph is deprecated. Please use tf.compat.v1.reset\\_default\\_graph instead.\" Has anyone faced a problem like this before and what is the solution? Thanks in advance\n\ncode: [https://imgur.com/a/IBTjI7v](https://imgur.com/a/IBTjI7v)",
"label": "r/tensorflow",
"dataType": "post",
"communityName": "r/tensorflow",
"datetime": "2024-05-11",
"username_encoded": "Z0FBQUFBQm5LakwyaGFZdFRNZTZDQzdJR25fTzZHMHl3bnltaXF1cVZPM1BzemdvREZOMG9rU0I1Zk85T3BzLXZtdXYzR0gxV0lieHpfTF94RlZ1UU41aEpWSTdxUDZOSGh1Ny1kRmZJN3UzZEZXbHZUYThJU289",
"url_encoded": "Z0FBQUFBQm5Lak9HZ3h2SXlkWGFUZ1l3UjZLWVB5ZHE0aWtLMEYtRkxoNEJzcVVFdDJpMm5DeFZ3QVBzcE4wUDZGbHlXUG1WeUphZzV1cEM4WlFTZHFranQ3dTBYQU93YS00aU9NTmRaaTFfcW9ERDhFZFFoX1YxZmpPVTgyc3dpT3NHYkZ0NllKdkFqUTRkbjJuT3ZNdFNnZHpUUjlOZVRKaGZCa2dnWXF4Q05nZ0t4ellpT0g1TllaREtjbHgxeHNTMjFkXzlaU3VMY0RrZVBIcnpyV3h6UWxiZHFBaXIyZz09"
}
Entry Information
- Entry ID: 6554
- Repository: Axioma AXP
- Dataset: arrmlet/reddit_dataset_36
- Total Entries: 100,000