Error while using my AI model in real time detection

Hello, im getting this error:
Error: The shape of dict[‘images’] provided in model.execute(dict) must be [1,3,640,640], but was [1,640,640,3]

I know that i need to reshape but idk how should i do it

Hi @Karim_Deiss

Is this in relation to your previous forum topic about using Roboflow in a React project?

Could you provide more information as to the code that triggered the issue or the stack trace for that issue?

Hello @leo
Yes I did use the react project you told me about but when I use my model I’m getting the error that I mentioned
This is the github link of the sample project that I was using

Could you share the specific location (stack trace) of where that error occurred?