DFDNet icon indicating copy to clipboard operation
DFDNet copied to clipboard

No Module named ''sync_batchnorm'

Open cochese9000 opened this issue 5 years ago • 2 comments

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 avatar Jan 23 '21 00:01 cochese9000

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 avatar Jan 23 '21 00:01 cochese9000

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

cochese9000 avatar Feb 03 '21 21:02 cochese9000