NVlabs / stylegan3

Official PyTorch implementation of StyleGAN3
Other
6.38k stars 1.12k forks source link

The program hangs on `Setting up PyTorch plugin "filtered_lrelu_plugin"... ` #203

Open ll2pakll opened 1 year ago

ll2pakll commented 1 year ago

Hello, I had everything working fine, but at some point, I interrupted the program without letting it finish. And now I'm facing the fact that the program hangs on Setting up PyTorch plugin "filtered_lrelu_plugin"... and nothing else happens. This happens both when trying to generate new images with gen_images.py and when trying to open the visualizer. In this case, visualizer opens but hangs with Loading and then the name of the network file. First I reinstalled torch and all related packages, then I replaced all the stylegan3 files with the ones downloaded from the repository. This didn't help. So I completely deleted the virtual environment and re-created it by downloading and installing all the required modules. But the behavior has not changed. I have no idea what to do.

ll2pakll commented 1 year ago

Windows 10

ll2pakll commented 1 year ago

I had to reinstall Windows completely to make it work again

Enddle commented 1 year ago

Same issue here, solved by clearing the torch extension cache inside windows user folder \AppData\Local\torch_extensions\torch_extensions\Cache solution found in #48 (I didn't do the first step of installing gcc, just clearing the cache worked)

also, for macos the directory might be /home/jack/.cache/torch_extensions according to #114

nurpax commented 1 year ago

Also mentioned here: https://github.com/NVlabs/stylegan3/blob/main/docs/troubleshooting.md

nuclearsugar commented 1 year ago

In my experience I've had this happen several times and realized it was caused by closing the command prompt window while the bias_act_plugin or upfirdn2d_plugin was loading. Then the next time you're starting up a training session it will hang. So it seems that the plugins cache folder becomes corrupted and needs to be flushed. As mentioned above, this can be achieve by doing the following:

MikeLasz commented 1 year ago

Thanks, removing the .cache directory has worked for me.

toprakfirat commented 11 months ago

Removing .cache worked for me as well.

ajmariani commented 3 months ago

Same problem and removing .cache worked for me.