You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello, I have read part of the source code of these project, and I find the content in the inference.py module from line 54 to line 63, and I pasts it at here as following:
However, as far as my concern, to utilize a trained model to do inference, the most common way should be like that:
(1) build the network and load the network weight param got from the previous trainning
(2)input the image for inference
anyway, according to the source code like above, the input image for inferencing was utilized as the parameter for the network initialization.
My question is, why did the input image should be utilized as a parameter for the networkinitialization, can I init the network alone without it, so as to executing the inference of this model more
efficiently(I means, initializinig the model at beginning only once, and to do the inference of several images one by one next)
Thank for your help.
The text was updated successfully, but these errors were encountered:
hello, I have read part of the source code of these project, and I find the content in the inference.py module from line 54 to line 63, and I pasts it at here as following:
Prepare image.
However, as far as my concern, to utilize a trained model to do inference, the most common way should be like that:
(1) build the network and load the network weight param got from the previous trainning
(2)input the image for inference
anyway, according to the source code like above, the input image for inferencing was utilized as the parameter for the network initialization.
My question is, why did the input image should be utilized as a parameter for the networkinitialization, can I init the network alone without it, so as to executing the inference of this model more
efficiently(I means, initializinig the model at beginning only once, and to do the inference of several images one by one next)
Thank for your help.
The text was updated successfully, but these errors were encountered: