BasicSR icon indicating copy to clipboard operation
BasicSR copied to clipboard

Why this sametime ?

Open mb1000do opened this issue 6 years ago • 1 comments

Cannot import dcn. Ignore this warning if dcn is not used. Otherwise install BasicSR with compiling dcn. Cannot import fused_act and upfirdn2d. Ignore this warning if they are not used. Otherwise install BasicSR with compiling them. Testing 0 bbb Traceback (most recent call last): File "test_scripts/test_esrgan.py", line 55, in main() File "test_scripts/test_esrgan.py", line 46, in main output = model(img) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 722, in _call_impl result = self.forward(*input, **kwargs) File "/content/BasicSR/basicsr/models/archs/rrdbnet_arch.py", line 105, in forward body_feat = self.conv_body(self.body(feat)) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 722, in _call_impl result = self.forward(*input, **kwargs) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/container.py", line 117, in forward input = module(input) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 722, in _call_impl result = self.forward(*input, **kwargs) File "/content/BasicSR/basicsr/models/archs/rrdbnet_arch.py", line 61, in forward out = self.rdb1(x) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 722, in _call_impl result = self.forward(*input, **kwargs) File "/content/BasicSR/basicsr/models/archs/rrdbnet_arch.py", line 39, in forward x5 = self.conv5(torch.cat((x, x1, x2, x3, x4), 1)) RuntimeError: CUDA out of memory. Tried to allocate 4.77 GiB (GPU 0; 15.90 GiB total capacity; 6.50 GiB already allocated; 1.06 GiB free; 12.87 GiB reserved in total by PyTorch)


Sometime is running ( Pic ) sometime this Massage !? :-(

mb1000do avatar Nov 02 '20 14:11 mb1000do

  1. Cannot import dcn.... Because you do not compile these operators. But if you do not use these operators, you could just ignore them.
  2. CUDA out of memory means that your input image is too large and the GPU memory is not enough. You can 1) split your image to sub-images and restore and finally merge them

xinntao avatar Nov 02 '20 15:11 xinntao