The vae_checkpoint you provided is diffusion_pytorch_model.safetensors, not a .ckpt or .pth file. But in ldm/train_unconditional.py, vae_checkpoint = torch.load(args.vae_checkpoint, map_location='cpu')['state_dict']. How is this done?
If I use vae_checkpoint = load_file(args.vae_checkpoint) and vae_checkpoint = {k: v.to("cpu") for k, v in vae_checkpoint.items()} instead, the problem of "NotImplementedError: Cannot copy out of meta tensor; no data!" cannot be solved.
The vae_checkpoint you provided is diffusion_pytorch_model.safetensors, not a .ckpt or .pth file. But in ldm/train_unconditional.py, vae_checkpoint = torch.load(args.vae_checkpoint, map_location='cpu')['state_dict']. How is this done? If I use vae_checkpoint = load_file(args.vae_checkpoint) and vae_checkpoint = {k: v.to("cpu") for k, v in vae_checkpoint.items()} instead, the problem of "NotImplementedError: Cannot copy out of meta tensor; no data!" cannot be solved.