Open wzr0108 opened 1 year ago
I modified th code in tain_ddp.py
with torch.cuda.amp.autocast():
losses_G, generated = G_full(data, stage=args["stage"])
loss_G = sum([val.mean() for val in losses_G.values()])
# avoid ddp bug
for k, v in generated.items():
loss_G += v.mean() * 0.0
scaler.scale(loss_G).backward()
There is no error in the code, but I am not sure if the result is correct
Thanks for pointing this out, I will check it later.
I want to train a model from scratch, but how should I prepare the training data? I don't know how to get the ldmk, theta, id and map_dict files and put them in the correct place
when I run the code following this command
I met this error
my evn is python3.8 torch1.9.1+cu111