Wolfbeast

Untitled

Nov 26th, 2023
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "E:\sdiff\diffusers\examples\inference\save_onnx.py", line 66, in <module>
  3. convert_to_onnx(pipe.unet, pipe.vae.post_quant_conv, pipe.vae.decoder, text_encoder, height=512, width=512)
  4. File "E:\sdiff\diffusers\examples\inference\save_onnx.py", line 41, in convert_to_onnx
  5. traced_model = torch.jit.trace(unet, check_inputs[0], check_inputs=[check_inputs[1]], strict=True)
  6. File "C:\Users\Moonchild\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\jit\_trace.py", line 798, in trace
  7. return trace_module(
  8. File "C:\Users\Moonchild\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\jit\_trace.py", line 1065, in trace_module
  9. module._c._create_method_from_trace(
  10. 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. Consider using a constant container instead (e.g. for `list`, use a `tuple` instead. for `dict`, use a `NamedTuple` instead). If you absolutely need this and know the side effects, pass strict=False to trace() to allow this behavior.
Advertisement
Add Comment
Please, Sign In to add comment