csxmli2016 / DFDNet

Blind Face Restoration via Deep Multi-scale Component Dictionaries (ECCV 2020)
915 stars 215 forks source link

No Module named ''sync_batchnorm' #66

Open cochese9000 opened 3 years ago

cochese9000 commented 3 years ago

image

I used the default settings for everything and it all worked for about 5 iterations. I tried several differnet source images and it threw this error on the 5th or 6th. I tried different images an cleared out the folders and everything, but it keeps coming up with this error.

ModuleNotFoundError: No module named 'sync_batchnorm' Any ideas?

I'm on Windows 10x64 and followed the video installation tutorial.

cochese9000 commented 3 years ago

The only thing I can think of that changes was the size of the source images. But I have no idea wheter I should have been deleting the output folders or not. I forget at times, so perhaps I corrupted the core processing memory.

cochese9000 commented 3 years ago

OK, I figured it out. Amazingly, it was because the package was missing. I have no idea why it suddenly disappeared, but assume some automatic update suddenly required it.

I just went to the environment folder and did a git clone of the sync_batchnorm repoe. Copied the 'snyc_batchnorm' folder into the library with the other pythong modules and it works.

Get the repo:

git clone https://github.com/vacancy/Synchronized-BatchNorm-PyTorch

Copy the 'snyc_batchnorm' folder into this folder:

C:\Users[%user%]\anaconda3\envs\DFDNet\Library\lib