Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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) #5

Open
Youssef-Harby opened this issue Dec 6, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Youssef-Harby
Copy link
Collaborator

After fff353c

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 Youssef-Harby added the bug Something isn't working label Dec 6, 2021
@Youssef-Harby Youssef-Harby self-assigned this Dec 6, 2021
@geoyee geoyee self-assigned this Dec 7, 2021
@geoyee
Copy link
Owner

geoyee commented Dec 7, 2021

Is the test raster the one you gave me? Is GPU enabled? and What version of your paddlepaddle / paddlepaddle-gpu? 😃

@Youssef-Harby
Copy link
Collaborator Author

I was trying to figure GPU working or not so I uninstalled paddlepaddle 2.2.0 and installed paddlepaddle-gpu 2.2.0 , check the GPU, and unchecked it in both conditions but it seems something wrong , I will check it again and reply.

@geoyee
Copy link
Owner

geoyee commented Dec 8, 2021

OK, My computer can work used your dataset, this is memory usage in four states.
stas
And there are some package's version in my env.
image

@Youssef-Harby
Copy link
Collaborator Author

U see the GPU is 0% usage in all situations ?

@geoyee
Copy link
Owner

geoyee commented Dec 8, 2021

U see the GPU is 0% usage in all situations ?

yes, i dont know why is 0% when i used GPU to infer, but it did give me the right results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants