I would like to kwown if custom-network-config must be with absolute path or can i give relative path?
Of course it can be a relative path, but you have to make sure the path is correct
autodrive, I have tried but it doesnt work in my case. If my folder looks like:
Since the custom-network-config is inside “nvinfer_config.txt” file, the relative path must be with respect where is located or w.r.t main.py?
Yes, of cource.
follow your file path，in your main.py add
cur_path = os.path.dirname(os.path.abspath(__file__)) config_file_path = cur_path + os.path.sep + "config/nvinfer_config.txt"
It’s will be work fine.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.