ComfyUI-Upscaler-Tensorrt
ComfyUI-Upscaler-Tensorrt copied to clipboard
error when building Tensorrt engine
Hi, it might be a conflict with other modules, not really sure
try renaming the file to trt_utilities.py and replace the imports in export_trt.py -> from trt_utilities import Engine
and what python version are you using?
I did as you advised, but nothing changed
python 3.10.11
Unfortunately, I have no idea what's causing this issue /:
Last resort, add this to the top of export_trt.py
import sys
sys.path.append("C:\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\ComfyUI-Upscaler-Tensorrt")
Go into comfyiui manager > install custom nodes > ctrl+f > type Conflicted and then press f3 to scroll through anything it found and see if anything conflicts with tensorrt.
Go into comfyiui manager > install custom nodes > ctrl+f > type Conflicted and then press f3 to scroll through anything it found and see if anything conflicts with tensorrt.
In fact, we can do it simpler and write “tensorrt” instead of “conflicting”, if only in order to immediately find everything that relates to it.
As a result, very few were found, and there were no conflicting nodes among them
Last resort, add this to the top of
export_trt.pyimport sys sys.path.append("C:\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\ComfyUI-Upscaler-Tensorrt")
And it worked! Thank you very much for the help
By the way, in order for the nodes to be initialized in ComfyUI, you should make the same edit to the init.py file, please note.
After that, everything started, the node is present, only now the error appears during operation:
my GPU is rtx4070 12Gb
nice looks like you're out of gpu memory /:
Unfortunately, I have no idea what's causing this issue /:
Last resort, add this to the top of
export_trt.pyimport sys sys.path.append("C:\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\ComfyUI-Upscaler-Tensorrt")
Add this to the readme somewhere under the name FaQ, as this is a common issue.
Thanks!
