Repository navigation
i cant get to finish my docker build. please help #6577
|
i have tried many times. same thing is happening and its taking very long with no progress. |
Replies: 1 comment 1 reply
|
The step that's stuck is That script builds wheels for Fix: stop the build (Ctrl+C) and add one line to sed -i "s/setup_requires=\['cython', 'numpy', 'torch'\]/setup_requires=['cython', 'numpy']/" basicsr-*/setup.pyThen run
If you'd rather not edit anything, the build will usually finish eventually once torch has downloaded. On a slow line it may keep timing out, though. |

The step that's stuck is
[realesrgan-wheels 4/4] RUN bash /usr/local/bin/build-realesrgan-wheels.sh(5521s in your screenshot). Everything else finished.That script builds wheels for
basicsr,gfpganandfacexlib.basicsr1.4.2'ssetup.pyhassetup_requires=['cython', 'numpy', 'torch'], so pip installs the full PyTorch into a temporary build environment just to build it. On Linux that means torch plus the CUDA packages, several GB, and on a slow connection it crawls or ends in aReadTimeoutError. torch isn't actually used for the build (the CUDA extensions are only compiled withBASICSR_EXT=True), and the resulting wheel is pure Python. This is the first half of #6156.Fix: stop the build…