profile
viewpoint

Ask questionstest with my own images

How do I run inference on my own images?

Thanks,

tfzhou/ContrastiveSeg

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.

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List