buildseg icon indicating copy to clipboard operation
buildseg copied to clipboard

ValueError: (InvalidArgument) Pass tensorrt_subgraph_pass has not been registered. Please use the paddle inference library compiled with tensorrt or disable the tensorrt engine in inference configuration! [Hint: Expected Has(pass_type) == true, but received Has(pass_type):0 != true:1.] (at ..\paddle/fluid/framework/ir/pass.h:236)

Open Youssef-Harby opened this issue 2 years ago • 5 comments

After fff353c53be942071896f75282b32f75ed5fa479

An error has occurred while executing Python code: 

ValueError: (InvalidArgument) Pass tensorrt_subgraph_pass has not been registered. Please use the paddle inference library compiled with tensorrt or disable the tensorrt engine in inference configuration!   [Hint: Expected Has(pass_type) == true, but received Has(pass_type):0 != true:1.] (at ..\paddle/fluid/framework/ir/pass.h:236) 
Traceback (most recent call last):
  File "C:\Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\buildseg\buildSeg.py", line 199, in select_params_file
    self.infer_worker.load_model(self.model_file, self.param_file, \
  File "C:\Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\buildseg\utils\infer.py", line 36, in load_model
    self.predictor = paddle_infer.create_predictor(config)  # Create predictor from config
ValueError: (InvalidArgument) Pass tensorrt_subgraph_pass has not been registered. Please use the paddle inference library compiled with tensorrt or disable the tensorrt engine in inference configuration! 
  [Hint: Expected Has(pass_type) == true, but received Has(pass_type):0 != true:1.] (at ..\paddle/fluid/framework/ir/pass.h:236)



Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] 
QGIS version: 3.16.13-Hannover Hannover, a8618a94 

Python Path:
C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\paddle\fluid\..\libs
C:/PROGRA~1/QGIS31~1.13/apps/qgis-ltr/./python
C:/Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA~1/QGIS31~1.13/apps/qgis-ltr/./python/plugins
C:\Program Files\QGIS 3.16.13\bin\python39.zip
C:\PROGRA~1\QGIS31~1.13\apps\Python39\DLLs
C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib
C:\Program Files\QGIS 3.16.13\bin
C:\Users\Youss\AppData\Roaming\Python\Python39\site-packages
C:\PROGRA~1\QGIS31~1.13\apps\Python39
C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages
C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\GDAL-3.4.0-py3.9-win-amd64.egg
C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\win32
C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\win32\lib
C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\Pythonwin
C:/Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\paddle\fluid\proto
C:/Users/Youss/Documents/qgis-projects/ml-results

image

Youssef-Harby avatar Dec 06 '21 17:12 Youssef-Harby