You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/paperspace/mmagic/demo/mmagic_inference_demo.py", line 142, in <module>
main()
File "/home/paperspace/mmagic/demo/mmagic_inference_demo.py", line 138, in main
editor.infer(**user_defined)
File "/home/paperspace/.local/lib/python3.11/site-packages/mmagic/apis/mmagic_inferencer.py", line 231, in infer
return self.inferencer(
^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/mmagic/apis/inferencers/__init__.py", line 110, in __call__
return self.inferencer(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/mmagic/apis/inferencers/base_mmagic_inferencer.py", line 139, in __call__
results = self.base_call(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/mmagic/apis/inferencers/base_mmagic_inferencer.py", line 165, in base_call
preds = self.forward(data, **forward_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/mmagic/apis/inferencers/video_restoration_inferencer.py", line 134, in forward
self.model(
File "/home/paperspace/.local/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/mmagic/models/base_models/base_edit_model.py", line 109, in forward
return self.forward_tensor(inputs, data_samples, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/mmagic/models/base_models/base_edit_model.py", line 167, in forward_tensor
feats = self.generator(inputs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/mmagic/models/editors/basicvsr_plusplus_net/basicvsr_plusplus_net.py", line 348, in forward
feats = self.propagate(feats, flows, module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/mmagic/models/editors/basicvsr_plusplus_net/basicvsr_plusplus_net.py", line 218, in propagate
feat_prop = self.deform_align[module_name](feat_prop, cond,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/mmagic/models/editors/basicvsr_plusplus_net/basicvsr_plusplus_net.py", line 416, in forward
return modulated_deform_conv2d(x, offset, mask, self.weight, self.bias,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/torch/autograd/function.py", line 539, in apply
return super().apply(*args, **kwargs) # type: ignore[misc]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/paperspace/.local/lib/python3.11/site-packages/mmcv/ops/modulated_deform_conv.py", line 149, in forward
ext_module.modulated_deform_conv_forward(
RuntimeError: CUDA error: CUBLAS_STATUS_EXECUTION_FAILED when calling `cublasSgemm( handle, opa, opb, m, n, k, &alpha, a, lda, b, ldb, &beta, c, ldc)`
Additional information
I keep running into the error above when trying to run BasicVSR_PP on videos at least 1746x1080 or larger. The last confirmed resolution that works is 1646x1080. The error seems to be occuring during forward propagation.
I've tried testing this with multiple versions of PyTorch and mmcv/mmcv-full, and they all fail in a similar way.
The GPU has plenty of memory when max_seq_len=2 (only using ~25g/80g). Is there any workaround available without resorting to methods like tiling the video?
The text was updated successfully, but these errors were encountered:
Prerequisite
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
main branch https://github.com/open-mmlab/mmagic
Environment
Reproduces the problem - code sample
Running modulated_deform_conv2d seems to cause the error
Reproduces the problem - command or script
Causes error, full1.mov is 1920 × 1080
Both cause error, partial3.mov is 1755 × 1080
Does not cause error, same video, but with max_seq_len 1, the network never needs to forward propagate
does not cause error, partial4.mov is 1646x1080
Reproduces the problem - error message
Additional information
I keep running into the error above when trying to run BasicVSR_PP on videos at least 1746x1080 or larger. The last confirmed resolution that works is 1646x1080. The error seems to be occuring during forward propagation.
I've tried testing this with multiple versions of PyTorch and mmcv/mmcv-full, and they all fail in a similar way.
The GPU has plenty of memory when max_seq_len=2 (only using ~25g/80g). Is there any workaround available without resorting to methods like tiling the video?
The text was updated successfully, but these errors were encountered: