We can't record the data flow of Python values, so this value will be treated as a constant in the future. I have no idea how to solve it, and changing strict=True to False gave me a completely different errorĬ:\Users**\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\resnet.py:122: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. If you absolutely need this and know the side effects, pass strict=False to trace() to allow this behavior. Consider using a constant container instead (e.g. RuntimeError: Encountering a dict at the output of the tracer might cause the trace to be incorrect, this is only valid if the container structure does not change based on the module's inputs. Traced_model = (unet, check_inputs, check_inputs=], strict=True)įile "C:\Users\MYNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\jit_trace.py", line 759, in traceįile "C:\Users\MYNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\jit_trace.py", line 976, in trace_module File "D:\PGRM\DecSD\diffusers\examples\inference\save_onnx.py", line 66, inĬonvert_to_onnx(pipe.unet, _quant_conv,, text_encoder, height=512, width=512)įile "D:\PGRM\DecSD\diffusers\examples\inference\save_onnx.py", line 41, in convert_to_onnx
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |