Got it

Urgent: Error message when I try to implement FastRcnn using both mindspore 1.3 and 1.5

Created: Sep 28, 2021 11:02:55Latest reply: Oct 21, 2021 14:49:26 486 10 1 0 0
  HiCoins as reward: 0 (problem unresolved)

I am using VOC dataset to train Fast-RCNN model using Mindspore, refering to the offciel link: 

https://gitee.com/mindspore/mindspore/tree/r1.3/model_zoo/official/cv/faster_rcnn


When I try to run the train.py file using Mindspore 1.3 Iget the follwing error: 

RuntimeError: mindspore\ccsrc\backend\kernel_compiler\cpu\cpu_kernel_factory.cc:157 GetSupportedKernelAttrList] Not registered CPU kernel: op[CheckValid]!
# 
WARNING: Logging before InitGoogleLogging() is written to STDERR
[ERROR] KERNEL(6860,41095,?):2021-9-28 14:20:41 [mindspore\ccsrc\backend\kernel_compiler\cpu\cpu_kernel_factory.cc:157] GetSupportedKernelAttrList] Not registered CPU kernel: op[CheckValid]!


I got an Advice from the community to use Mindspore 1.5, and I did but this time I got a very complicated error which I think because I am using FastRcnn for the version 1.3 and I could not find the model in version 1.5. 


Following is a snapshot of the error I got when I use Mindspore 1.5: 

[WARNING] OPTIMIZER(20896,1,?):2021-9-28 14:43:54 [mindspore\ccsrc\frontend\optimizer\ad\kprim.cc:287] GetBprop] Fail to find bprop function for BoundingBoxEncode. fn: None

TypeError: mindspore\ccsrc\runtime\device\cpu\kernel_select_cpu.cc:219 KernelNotSupportException] Operator[StridedSlice]  input(kNumberTypeUInt8) output(kNumberTypeUInt8) is not support. This error means the current input type is not supported, please refer to the MindSpore doc for supported types.

[WARNING] PIPELINE(20896,1,?):2021-9-28 14:44:6 [mindspore\ccsrc\pipeline\jit\init.cc:310] operator()] Start releasing dataset handles...
[WARNING] PIPELINE(20896,1,?):2021-9-28 14:44:6 [mindspore\ccsrc\pipeline\jit\init.cc:313] operator()] End release dataset handles.


knowing that my os is windows 10, and I am using CPU as soon as it's the only device compatible with mindpore when it comes to windows. I attached the full traceback for both errors as doc files. 


please provide me with solution and let me know the reason behins this errors, is it a hardware problem?  


Attachment: You need to log in to download or view. No account? Register

Featured Answers

Recommended answer

zt23
Created Sep 29, 2021 06:20:11

The error is
TypeError: mindspore\ccsrc\runtime\device\cpu\kernel_select_cpu.cc:219 KernelNotSupportException] Operator[StridedSlice] input(kNumberTypeUInt8) output(kNumberTypeUInt8) is not support. This error means the current input type is not supported, please refer to the MindSpore doc for supported types.

StridedSlice does not support uint8 onCPU currently, please add cast operation to convert the type to int32.
View more
  • x
  • convention:

user_4314759
user_4314759 Created Sep 30, 2021 06:06:20 (0) (0)
So I have to cast my dataset after convert it to mindrecord?  
chantha
chantha Created Oct 13, 2021 07:28:57 (0) (0)
 
All Answers
Dear friend!
Please rest assured that we'll be back with an answer shortly.
View more
  • x
  • convention:

Urgent: Error message when I try to implement FastRcnn using both mindspore 1.3 and 1.5-4174845-1
View more
  • x
  • convention:

any suggestions??!
View more
  • x
  • convention:

olive.zhao
olive.zhao Created Sep 29, 2021 06:11:14 (0) (0)
Hello, our experts are analyzing and we'll get back to you as soon as possible.  
smileymind
smileymind Created Oct 13, 2021 07:31:29 (0) (0)
 
The error is
TypeError: mindspore\ccsrc\runtime\device\cpu\kernel_select_cpu.cc:219 KernelNotSupportException] Operator[StridedSlice] input(kNumberTypeUInt8) output(kNumberTypeUInt8) is not support. This error means the current input type is not supported, please refer to the MindSpore doc for supported types.

StridedSlice does not support uint8 onCPU currently, please add cast operation to convert the type to int32.
View more
  • x
  • convention:

user_4314759
user_4314759 Created Sep 30, 2021 06:06:20 (0) (0)
So I have to cast my dataset after convert it to mindrecord?  
chantha
chantha Created Oct 13, 2021 07:28:57 (0) (0)
 
Good
View more
  • x
  • convention:

Good answer
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.