Ask questionstest with my own images
How do I run inference on my own images?
Answer questions tfzhou
Hi @fjremnav , sorry for that I have no plan to write this script. It will be perfect if you would write it. The file may have a simple pipeline:
# 1. define the model and load the pretrained weight # 2. load the image using opencv # 3. convert the image array to tensor with shape 1 x 3 x h x w # 4. call the forward function of the model
you can also refer to this line.
Related questionsNo questions were found.