Hi, I am having the same issue. Could you please direct me to the right resource from where I can get some insight to solve my issue. I have a trained model file which also includes some supported py module files. The tree is shown below:
model --> conf --> hmcn.json
--> data --> (some other required json files)
--> dataset --> init.py
--> classification_dataset.py
--> collator.py
--> data_preprocessor.py
--> dataset.py
--> model --> (some other .py module files)
--> config.py
--> HMCN
--> util.py
In the above tree HMCN is the model file and as shown there are some python module files which are imported in the score.py (not included in this tree) script for inferencing. I was using the AZURE Web UI and registered the model by selecting the "model" directory so that in the artifacts tab the root item is shown as "model" and inside the model there are all the files shown in the tree are uploaded.
Now I am trying to create an endpoint and deploy the model by using a "score.py" script for real-time inferencing. I did it with the WebUI by going to Endpoints --> Create deployment and in the Environment I selected score.py and choose PyTorch 1.9 curated environment but the during deployment the process fails and gives error that the module not found in the "score.py". The module that it is referring is in the "config.py" as shown in the model tree. I believe I need to set the path of the model tree so that the "score.py" can find the module. But I do now know how.
Your help would be greatly appreciated. Thanks