sihyun-yu / PVDM

Official PyTorch implementation of Video Probabilistic Diffusion Models in Projected Latent Space (CVPR 2023).
https://sihyun.me/PVDM
MIT License
287 stars 15 forks source link

RuntimeError:Default process group has not been initialized, please make sure to call init_process_group. #17

Closed fourcake closed 1 year ago

fourcake commented 1 year ago

When I use the sky data set and set n_gpus to 1, I try to run first_stage, "res.append(model(res[-1]))" at line 207 in ".loss/perceptual.py" reports an error "RuntimeError: Default process group has not been initialized, please make sure to call init_process_group.”. Why is there such a problem

sihyun-yu commented 1 year ago

Hi,

Can you decrease the batch_size to 1 and decrease the channel size in config then try it again?

fourcake commented 1 year ago

This should have nothing to do with the size of my storage. My device is two RTX4090 gpu, and each has 24G memory, when running on multiple gpus, it will tell me that the number of channels does not match: "RuntimeError: Given groups=1, weight of size [64, 3, 4, 4], expected input[1, 64, 33, 33] to have 3 channels, but got 64 channels instead".But when running on a single GPU, it still reports "RuntimeError('Default process group has not been initialized, please make sure to call init_process_group.')"

sihyun-yu commented 1 year ago

Can you provide me a line number (with file name) where the error "RuntimeError: Given groups=1, weight of size [64, 3, 4, 4], expected input[1, 64, 33, 33] to have 3 channels, but got 64 channels instead" occurs?

xiefan233 commented 1 year ago

You need to change the SyncBatchNorm that appears in the code to BatchNormxd(x=1or 2 or 3) depending on the specific situation.

TousenKaname commented 8 months ago

Hi, do you solve the problem? Thanks!