Stability-AI / StableCascade

Official Code for Stable Cascade
MIT License
6.44k stars 518 forks source link

torch._dynamo.exc.Unsupported: call_method NNModuleVariable() _conv_forward [TensorVariable(), TensorVariable(), TensorVariable()] {} #103

Open TimelessXZY opened 4 months ago

TimelessXZY commented 4 months ago
File "/opt/conda/envs/diffusers/lib/python3.8/site-packages/torch/_dynamo/exc.py", line 71, in unimplemented
    raise Unsupported(msg)
torch._dynamo.exc.Unsupported: call_method NNModuleVariable() _conv_forward [TensorVariable(), TensorVariable(), TensorVariable()] {}

from user code:
   File "/home/work/data3/xiaozhiyou/StableCascade/modules/common.py", line 65, in forward
    x = self.norm(self.depthwise(x))
  File "/opt/conda/envs/diffusers/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 463, in forward
    return self._conv_forward(input, self.weight, self.bias)

Set torch._dynamo.config.verbose=True for more information

You can suppress this exception and fall back to eager by setting:
    torch._dynamo.config.suppress_errors = True

Have anyone run into the issue above when running inference? Can someone help me?

FurkanGozukara commented 3 months ago

it is hard to run

for who cant run here check this out : https://github.com/Stability-AI/StableCascade/issues/125