ML Skill InternalServerError Image classification

Hi, Can anyone help me with this?. I am trying to use the ML skill activity with the image classification package. I already have deployed the skill and datasets (Train and Evaluation) succesfully, but when I tried to run or even test the skill with any image it returns me this error in the output:

{
“code”: “InternalServerError”,
“message”: “module ‘uipath_core.utils.utils’ has no attribute ‘print_log_trace_statements’”,
“stacktrace”: " File "/microservice/main.py", line 33, in predict\n self.mymodel.predict(df)\n File "/home/aicenter/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context\n return func(*args, **kwargs)\n File "", line 105, in predict\n File "/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File "", line 67, in forward\n File "/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File "/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py", line 249, in forward\n return self._forward_impl(x)\n File "/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py", line 232, in _forward_impl\n x = self.conv1(x)\n File "/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File "/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 399, in forward\n return self._conv_forward(input, self.weight, self.bias)\n File "/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 395, in _conv_forward\n return F.conv2d(input, weight, bias, self.stride,\nRuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py", line 227, in run_model_function\n output, metrics = function(*args, **kwargs)\n File "/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py", line 94, in _decorator\n return fn(*args, **kwargs)\n File "/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/logs/logger_mvc.py", line 90, in _decorator\n return fn(*args, **kwargs)\n File "/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py", line 27, in _decorator\n return fn(*args, **kwargs)\n File "/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py", line 166, in _model_predict\n utils.print_log_trace_statements()\nAttributeError: module ‘uipath_core.utils.utils’ has no attribute ‘print_log_trace_statements’",
“trace_id”: null,
“reason”: null
}

@kmilo_de_los_santos

Can you show what input you gave and the properties of the ml skill activity

From here it looks like the ML error

cheers

Alright, the inputs are connected with my tenant but I also try with the apikey and endpoint option but didnt work. This are the properties I have:

Hi @kmilo_de_los_santos

Did you train the model using CPU or GPU?
Did you deploy the ML Skill on CPU or GPU?

Do you see any logs if you go to AI Center, go to the ML Skill and then check streaming logs?

Jeremy

Hello @Jeremy_Tederry, in both cases I used GPU (Train an deploy).
This is the output of the Streaming Logs:

2023-01-31 19:23:24,115 - uipath_core.plugin:model_load:100 - INFO: Successfully loaded the module, timeTaken: 2.9583146572113037

2023-01-31 20:30:17,308 - uipath_core.data.data_validator:process_input_data:15 - INFO: [ correlation_id: ecc5aeed-7f47-427c-8e18-009687de3506 ] [ prediction_id: ] - Validate input for input type FILE
2023-01-31 20:30:17,308 - uipath_core.plugin:_model_predict:153 - INFO: [ correlation_id: ecc5aeed-7f47-427c-8e18-009687de3506 ] [ prediction_id: ] - Model Prediction started…
2023-01-31 20:30:17,336 - uipath_core.plugin:run_model_function:251 - ERROR: Request failed, reason: ‘Traceback (most recent call last):\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 156, in _model_predict\n output = self.model.predict(processed_data)\n File “/microservice/main.py”, line 33, in predict\n self.mymodel.predict(df)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py”, line 27, in decorate_context\n return func(*args, **kwargs)\n File “”, line 105, in predict\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “”, line 67, in forward\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py”, line 249, in forward\n return self._forward_impl(x)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py”, line 232, in _forward_impl\n x = self.conv1(x)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py”, line 399, in forward\n return self._conv_forward(input, self.weight, self.bias)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py”, line 395, in _conv_forward\n return F.conv2d(input, weight, bias, self.stride,\nRuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 227, in run_model_function\n output, metrics = function(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py”, line 75, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/logs/logger_mvc.py”, line 90, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py”, line 25, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 166, in _model_predict\n utils.print_log_trace_statements()\nAttributeError: module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'\n’
2023-01-31 20:30:17,336 - uipath_core.controller:handle_invalid_usage:40 - ERROR: {‘info’: ‘Prediction Failed’, ‘reason’: ‘{“message”: “module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'”, “stacktrace”: " File \“/microservice/main.py\”, line 33, in predict\n self.mymodel.predict(df)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py\”, line 27, in decorate_context\n return func(*args, **kwargs)\n File \“\”, line 105, in predict\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“\”, line 67, in forward\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py\”, line 249, in forward\n return self._forward_impl(x)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py\”, line 232, in _forward_impl\n x = self.conv1(x)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py\”, line 399, in forward\n return self._conv_forward(input, self.weight, self.bias)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py\”, line 395, in _conv_forward\n return F.conv2d(input, weight, bias, self.stride,\nRuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py\”, line 227, in run_model_function\n output, metrics = function(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py\”, line 75, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/logs/logger_mvc.py\”, line 90, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py\”, line 25, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py\”, line 166, in _model_predict\n utils.print_log_trace_statements()\nAttributeError: module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'"}’}

2023-01-31 20:47:18,911 - uipath_core.data.data_validator:process_input_data:15 - INFO: [ correlation_id: caad06ee-080e-4425-8ed9-4fb70bd67228 ] [ prediction_id: ] - Validate input for input type FILE
2023-01-31 20:47:18,912 - uipath_core.plugin:_model_predict:153 - INFO: [ correlation_id: caad06ee-080e-4425-8ed9-4fb70bd67228 ] [ prediction_id: ] - Model Prediction started…
2023-01-31 20:47:18,932 - uipath_core.plugin:run_model_function:251 - ERROR: Request failed, reason: ‘Traceback (most recent call last):\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 156, in _model_predict\n output = self.model.predict(processed_data)\n File “/microservice/main.py”, line 33, in predict\n self.mymodel.predict(df)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py”, line 27, in decorate_context\n return func(*args, **kwargs)\n File “”, line 105, in predict\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “”, line 67, in forward\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py”, line 249, in forward\n return self._forward_impl(x)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py”, line 232, in _forward_impl\n x = self.conv1(x)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py”, line 399, in forward\n return self._conv_forward(input, self.weight, self.bias)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py”, line 395, in _conv_forward\n return F.conv2d(input, weight, bias, self.stride,\nRuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 227, in run_model_function\n output, metrics = function(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py”, line 75, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/logs/logger_mvc.py”, line 90, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py”, line 25, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 166, in _model_predict\n utils.print_log_trace_statements()\nAttributeError: module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'\n’
2023-01-31 20:47:18,932 - uipath_core.controller:handle_invalid_usage:40 - ERROR: {‘info’: ‘Prediction Failed’, ‘reason’: ‘{“message”: “module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'”, “stacktrace”: " File \“/microservice/main.py\”, line 33, in predict\n self.mymodel.predict(df)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py\”, line 27, in decorate_context\n return func(*args, **kwargs)\n File \“\”, line 105, in predict\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“\”, line 67, in forward\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py\”, line 249, in forward\n return self._forward_impl(x)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py\”, line 232, in _forward_impl\n x = self.conv1(x)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py\”, line 399, in forward\n return self._conv_forward(input, self.weight, self.bias)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py\”, line 395, in _conv_forward\n return F.conv2d(input, weight, bias, self.stride,\nRuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py\”, line 227, in run_model_function\n output, metrics = function(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py\”, line 75, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/logs/logger_mvc.py\”, line 90, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py\”, line 25, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py\”, line 166, in _model_predict\n utils.print_log_trace_statements()\nAttributeError: module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'"}’}

2023-01-31 21:14:25,560 - uipath_core.auth.auth_processing_filter:process_authorization:123 - WARNING: Authorization bad padding, length: 2231
2023-01-31 21:14:25,560 - uipath_core.auth.auth_processing_filter:validate_headers:47 - INFO: [ correlation_id: 22489eb8-f8aa-48b8-801f-1bc978dddb86 ] [ prediction_id: ] [ trace_id: ef70bda7-4a88-4ec3-b340-38e22c2bcbb0 ] [ tenant_id: fa0025b6-48db-466b-8daa-00f1f6a22449 ] [ account_id: 1920e2a3-fc31-4687-a3b0-0d89a9758332 ] [ robot_id: ] - Successfully validated tenant fa0025b6-48db-466b-8daa-00f1f6a22449
2023-01-31 21:14:25,560 - uipath_core.data.data_validator:process_input_data:15 - INFO: [ correlation_id: 22489eb8-f8aa-48b8-801f-1bc978dddb86 ] [ prediction_id: ] [ trace_id: ef70bda7-4a88-4ec3-b340-38e22c2bcbb0 ] [ tenant_id: fa0025b6-48db-466b-8daa-00f1f6a22449 ] [ account_id: 1920e2a3-fc31-4687-a3b0-0d89a9758332 ] [ robot_id: ] - Validate input for input type FILE
2023-01-31 21:14:25,561 - uipath_core.plugin:_model_predict:153 - INFO: [ correlation_id: 22489eb8-f8aa-48b8-801f-1bc978dddb86 ] [ prediction_id: ] [ trace_id: ef70bda7-4a88-4ec3-b340-38e22c2bcbb0 ] [ tenant_id: fa0025b6-48db-466b-8daa-00f1f6a22449 ] [ account_id: 1920e2a3-fc31-4687-a3b0-0d89a9758332 ] [ robot_id: ] - Model Prediction started…
2023-01-31 21:14:25,581 - uipath_core.plugin:run_model_function:251 - ERROR: Request failed, reason: ‘Traceback (most recent call last):\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 156, in _model_predict\n output = self.model.predict(processed_data)\n File “/microservice/main.py”, line 33, in predict\n self.mymodel.predict(df)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py”, line 27, in decorate_context\n return func(*args, **kwargs)\n File “”, line 105, in predict\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “”, line 67, in forward\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py”, line 249, in forward\n return self._forward_impl(x)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py”, line 232, in _forward_impl\n x = self.conv1(x)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py”, line 399, in forward\n return self._conv_forward(input, self.weight, self.bias)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py”, line 395, in _conv_forward\n return F.conv2d(input, weight, bias, self.stride,\nRuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 227, in run_model_function\n output, metrics = function(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py”, line 94, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/logs/logger_mvc.py”, line 90, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py”, line 27, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 166, in _model_predict\n utils.print_log_trace_statements()\nAttributeError: module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'\n’
2023-01-31 21:14:25,581 - uipath_core.controller:Predict:64 - INFO: REST Response: {‘UiPath-response’: {‘strData’: ‘{“message”: “module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'”, “stacktrace”: " File \“/microservice/main.py\”, line 33, in predict\n self.mymodel.predict(df)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py\”, line 27, in decorate_context\n return func(*args, **kwargs)\n File \“\”, line 105, in predict\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“\”, line 67, in forward\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py\”, line 249, in forward\n return self._forward_impl(x)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py\”, line 232, in _forward_impl\n x = self.conv1(x)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py\”, line 399, in forward\n return self._conv_forward(input, self.weight, self.bias)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py\”, line 395, in _conv_forward\n return F.conv2d(input, weight, bias, self.stride,\nRuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py\”, line 227, in run_model_function\n output, metrics = function(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py\”, line 94, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/logs/logger_mvc.py\”, line 90, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py\”, line 27, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py\”, line 166, in _model_predict\n utils.print_log_trace_statements()\nAttributeError: module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'"}’, ‘meta’: {‘tags’: {‘code’: ‘500’}}}, ‘UiPath-metrics’: None, ‘UiPath-telemetry-metrics’: {‘url’: ‘/mlskills/1920e2a3-fc31-4687-a3b0-0d89a9758332/fa0025b6-48db-466b-8daa-00f1f6a22449/imageclassificationml’, ‘httpMethod’: ‘POST’, ‘accountId’: ‘1920e2a3-fc31-4687-a3b0-0d89a9758332’, ‘tenantId’: ‘fa0025b6-48db-466b-8daa-00f1f6a22449’, ‘name’: ‘imageclassificationml’}}

2023-01-31 21:36:21,532 - uipath_core.auth.auth_processing_filter:process_authorization:123 - WARNING: Authorization bad padding, length: 2231
2023-01-31 21:36:21,532 - uipath_core.auth.auth_processing_filter:validate_headers:47 - INFO: [ correlation_id: 1a6e1e7c-abe1-4fcc-a204-384e76890d64 ] [ prediction_id: ] [ trace_id: cbc092fa-1ac5-4a2e-b47b-0c464f949ba1 ] [ tenant_id: fa0025b6-48db-466b-8daa-00f1f6a22449 ] [ account_id: 1920e2a3-fc31-4687-a3b0-0d89a9758332 ] [ robot_id: ] - Successfully validated tenant fa0025b6-48db-466b-8daa-00f1f6a22449
2023-01-31 21:36:21,532 - uipath_core.data.data_validator:process_input_data:15 - INFO: [ correlation_id: 1a6e1e7c-abe1-4fcc-a204-384e76890d64 ] [ prediction_id: ] [ trace_id: cbc092fa-1ac5-4a2e-b47b-0c464f949ba1 ] [ tenant_id: fa0025b6-48db-466b-8daa-00f1f6a22449 ] [ account_id: 1920e2a3-fc31-4687-a3b0-0d89a9758332 ] [ robot_id: ] - Validate input for input type FILE
2023-01-31 21:36:21,533 - uipath_core.plugin:_model_predict:153 - INFO: [ correlation_id: 1a6e1e7c-abe1-4fcc-a204-384e76890d64 ] [ prediction_id: ] [ trace_id: cbc092fa-1ac5-4a2e-b47b-0c464f949ba1 ] [ tenant_id: fa0025b6-48db-466b-8daa-00f1f6a22449 ] [ account_id: 1920e2a3-fc31-4687-a3b0-0d89a9758332 ] [ robot_id: ] - Model Prediction started…
2023-01-31 21:36:21,548 - uipath_core.plugin:run_model_function:251 - ERROR: Request failed, reason: ‘Traceback (most recent call last):\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 156, in _model_predict\n output = self.model.predict(processed_data)\n File “/microservice/main.py”, line 33, in predict\n self.mymodel.predict(df)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py”, line 27, in decorate_context\n return func(*args, **kwargs)\n File “”, line 105, in predict\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “”, line 67, in forward\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py”, line 249, in forward\n return self._forward_impl(x)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py”, line 232, in _forward_impl\n x = self.conv1(x)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py”, line 399, in forward\n return self._conv_forward(input, self.weight, self.bias)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py”, line 395, in _conv_forward\n return F.conv2d(input, weight, bias, self.stride,\nRuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 227, in run_model_function\n output, metrics = function(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py”, line 94, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/logs/logger_mvc.py”, line 90, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py”, line 27, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 166, in _model_predict\n utils.print_log_trace_statements()\nAttributeError: module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'\n’
2023-01-31 21:36:21,548 - uipath_core.controller:Predict:64 - INFO: REST Response: {‘UiPath-response’: {‘strData’: ‘{“message”: “module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'”, “stacktrace”: " File \“/microservice/main.py\”, line 33, in predict\n self.mymodel.predict(df)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py\”, line 27, in decorate_context\n return func(*args, **kwargs)\n File \“\”, line 105, in predict\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“\”, line 67, in forward\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py\”, line 249, in forward\n return self._forward_impl(x)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py\”, line 232, in _forward_impl\n x = self.conv1(x)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py\”, line 399, in forward\n return self._conv_forward(input, self.weight, self.bias)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py\”, line 395, in _conv_forward\n return F.conv2d(input, weight, bias, self.stride,\nRuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py\”, line 227, in run_model_function\n output, metrics = function(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py\”, line 94, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/logs/logger_mvc.py\”, line 90, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py\”, line 27, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py\”, line 166, in _model_predict\n utils.print_log_trace_statements()\nAttributeError: module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'"}’, ‘meta’: {‘tags’: {‘code’: ‘500’}}}, ‘UiPath-metrics’: None, ‘UiPath-telemetry-metrics’: {‘url’: ‘/mlskills/1920e2a3-fc31-4687-a3b0-0d89a9758332/fa0025b6-48db-466b-8daa-00f1f6a22449/imageclassificationml’, ‘httpMethod’: ‘POST’, ‘accountId’: ‘1920e2a3-fc31-4687-a3b0-0d89a9758332’, ‘tenantId’: ‘fa0025b6-48db-466b-8daa-00f1f6a22449’, ‘name’: ‘imageclassificationml’}}

2023-01-31 21:41:41,348 - uipath_core.auth.auth_processing_filter:process_authorization:123 - WARNING: Authorization bad padding, length: 2231
2023-01-31 21:41:41,349 - uipath_core.auth.auth_processing_filter:validate_headers:47 - INFO: [ correlation_id: 6b9ff822-4a73-42ac-a449-0ce801f98d1b ] [ prediction_id: ] [ trace_id: 8d325d52-db46-430e-a8a6-306bd750164d ] [ tenant_id: fa0025b6-48db-466b-8daa-00f1f6a22449 ] [ account_id: 1920e2a3-fc31-4687-a3b0-0d89a9758332 ] [ robot_id: ] - Successfully validated tenant fa0025b6-48db-466b-8daa-00f1f6a22449
2023-01-31 21:41:41,349 - uipath_core.data.data_validator:process_input_data:15 - INFO: [ correlation_id: 6b9ff822-4a73-42ac-a449-0ce801f98d1b ] [ prediction_id: ] [ trace_id: 8d325d52-db46-430e-a8a6-306bd750164d ] [ tenant_id: fa0025b6-48db-466b-8daa-00f1f6a22449 ] [ account_id: 1920e2a3-fc31-4687-a3b0-0d89a9758332 ] [ robot_id: ] - Validate input for input type FILE
2023-01-31 21:41:41,349 - uipath_core.plugin:_model_predict:153 - INFO: [ correlation_id: 6b9ff822-4a73-42ac-a449-0ce801f98d1b ] [ prediction_id: ] [ trace_id: 8d325d52-db46-430e-a8a6-306bd750164d ] [ tenant_id: fa0025b6-48db-466b-8daa-00f1f6a22449 ] [ account_id: 1920e2a3-fc31-4687-a3b0-0d89a9758332 ] [ robot_id: ] - Model Prediction started…
2023-01-31 21:41:41,367 - uipath_core.plugin:run_model_function:251 - ERROR: Request failed, reason: ‘Traceback (most recent call last):\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 156, in _model_predict\n output = self.model.predict(processed_data)\n File “/microservice/main.py”, line 33, in predict\n self.mymodel.predict(df)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py”, line 27, in decorate_context\n return func(*args, **kwargs)\n File “”, line 105, in predict\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “”, line 67, in forward\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py”, line 249, in forward\n return self._forward_impl(x)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py”, line 232, in _forward_impl\n x = self.conv1(x)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py”, line 399, in forward\n return self._conv_forward(input, self.weight, self.bias)\n File “/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py”, line 395, in _conv_forward\n return F.conv2d(input, weight, bias, self.stride,\nRuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 227, in run_model_function\n output, metrics = function(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py”, line 94, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/logs/logger_mvc.py”, line 90, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py”, line 27, in _decorator\n return fn(*args, **kwargs)\n File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 166, in _model_predict\n utils.print_log_trace_statements()\nAttributeError: module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'\n’
2023-01-31 21:41:41,368 - uipath_core.controller:Predict:64 - INFO: REST Response: {‘UiPath-response’: {‘strData’: ‘{“message”: “module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'”, “stacktrace”: " File \“/microservice/main.py\”, line 33, in predict\n self.mymodel.predict(df)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py\”, line 27, in decorate_context\n return func(*args, **kwargs)\n File \“\”, line 105, in predict\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“\”, line 67, in forward\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py\”, line 249, in forward\n return self._forward_impl(x)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torchvision/models/resnet.py\”, line 232, in _forward_impl\n x = self.conv1(x)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/module.py\”, line 889, in _call_impl\n result = self.forward(*input, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py\”, line 399, in forward\n return self._conv_forward(input, self.weight, self.bias)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py\”, line 395, in _conv_forward\n return F.conv2d(input, weight, bias, self.stride,\nRuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py\”, line 227, in run_model_function\n output, metrics = function(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py\”, line 94, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/logs/logger_mvc.py\”, line 90, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py\”, line 27, in _decorator\n return fn(*args, **kwargs)\n File \“/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py\”, line 166, in _model_predict\n utils.print_log_trace_statements()\nAttributeError: module 'uipath_core.utils.utils' has no attribute 'print_log_trace_statements'"}’, ‘meta’: {‘tags’: {‘code’: ‘500’}}}, ‘UiPath-metrics’: None, ‘UiPath-telemetry-metrics’: {‘url’: ‘/mlskills/1920e2a3-fc31-4687-a3b0-0d89a9758332/fa0025b6-48db-466b-8daa-00f1f6a22449/imageclassificationml’, ‘httpMethod’: ‘POST’, ‘accountId’: ‘1920e2a3-fc31-4687-a3b0-0d89a9758332’, ‘tenantId’: ‘fa0025b6-48db-466b-8daa-00f1f6a22449’, ‘name’: ‘imageclassificationml’}}

Could you try to deploy ML Skill on CPU? Looks like a Cuda error here.

@Jeremy_Tederry, Should I switch the training to CPU as well?
I tried to deploy ML skill on CPU but it returns an error and failed status.
This is the streaming log output:

2023-02-01 16:15:23,464 - opencensus.trace.config_integration:trace_integrations:35 - WARNING: Failed to integrate module: opencensus.ext.logging.trace
2023-02-01 16:15:23,464 - opencensus.trace.config_integration:trace_integrations:36 - WARNING: No module named ‘opencensus.ext.logging’
2023-02-01 16:15:23,464 - opencensus.trace.config_integration:trace_integrations:35 - WARNING: Failed to integrate module: opencensus.ext.requests.trace
2023-02-01 16:15:23,464 - opencensus.trace.config_integration:trace_integrations:36 - WARNING: No module named ‘opencensus.ext.requests’
2023-02-01 16:15:23,464 - uipath_core.microservice:main:66 - INFO: Starting microservice.py:main
2023-02-01 16:15:23,464 - uipath_core.microservice:main:67 - INFO: Configuration:
2023-02-01 16:15:23,465 - uipath_core.microservice:main:68 - INFO: worker_type: gevent
2023-02-01 16:15:23,465 - uipath_core.microservice:main:69 - INFO: model_init: eager
2023-02-01 16:15:23,465 - uipath_core.microservice:main:70 - INFO: server_for_gpu: WSGI
2023-02-01 16:15:23,466 - uipath_core.microservice:main:83 - INFO: Importing ImageClassification
2023-02-01 16:15:23,467 - uipath_core.microservice:main:98 - INFO: REST microservice running on port 5000
2023-02-01 16:15:25,614 - uipath_core.plugin:model_load:87 - INFO: Start model initialization…
2023-02-01 16:15:25,616 - root:load:212 - INFO: Loading model…
2023-02-01 16:15:25,621 - uipath_core.plugin:model_load:98 - ERROR: Traceback (most recent call last):
File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 93, in model_load
self._load_with_args()
File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 79, in _load_with_args
raise e
File “/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py”, line 73, in _load_with_args
self._model = main.Main(self.args)
File “/microservice/main.py”, line 29, in init
self.mymodel = model.ImageClassificationModel.load(self.opt)
File “”, line 217, in load
File “/home/aicenter/.local/lib/python3.8/site-packages/torch/serialization.py”, line 592, in load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File “/home/aicenter/.local/lib/python3.8/site-packages/torch/serialization.py”, line 851, in _load
result = unpickler.load()
File “/home/aicenter/.local/lib/python3.8/site-packages/torch/serialization.py”, line 843, in persistent_load
load_tensor(data_type, size, key, _maybe_decode_ascii(location))
File “/home/aicenter/.local/lib/python3.8/site-packages/torch/serialization.py”, line 832, in load_tensor
loaded_storages[key] = restore_location(storage, location)
File “/home/aicenter/.local/lib/python3.8/site-packages/torch/serialization.py”, line 175, in default_restore_location
result = fn(storage, location)
File “/home/aicenter/.local/lib/python3.8/site-packages/torch/serialization.py”, line 151, in _cuda_deserialize
device = validate_cuda_device(location)
File “/home/aicenter/.local/lib/python3.8/site-packages/torch/serialization.py”, line 135, in validate_cuda_device
raise RuntimeError('Attempting to deserialize object on a CUDA ’
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device(‘cpu’) to map your storages to the CPU.

I used the training and Ml skill with CPU with the default configurations, It means I didnt put GPU or change the number of AI units or RAM. In that way it worked as expected but takes too long to finish each process.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.