CSA-inpainting icon indicating copy to clipboard operation
CSA-inpainting copied to clipboard

Run ERROR

Open GitRealNB opened this issue 3 years ago • 11 comments

pic = (torch.cat([real_A, real_B,fake_B], dim=0) + 1) / 2.0 torchvision.utils.save_image(pic_1, '%s/Epoch_(%d)_(%dof%d).jpg' % ( save_dir, epoch, total_steps + 1, len(dataset_train)), nrow=2)

pic_1 not defined, 是不是要把pic_1改成pic? 按如上修改后,save_dir not defined 这是为啥呢?是代码执行的先后顺序有问题吗?

GitRealNB avatar Mar 02 '21 14:03 GitRealNB

fix pic_1 with pic.

kkamankun avatar Mar 03 '21 09:03 kkamankun

type an absolute path instead of the save_dir variable.

kkamankun avatar Mar 03 '21 09:03 kkamankun

fix pic_1 with pic.

想请教一下 怎么设置epoch个数啊?目前是120?

GitRealNB avatar Mar 30 '21 06:03 GitRealNB

type an absolute path instead of the save_dir variable. wana ask where to change epoch? now sets as 120

GitRealNB avatar Mar 30 '21 06:03 GitRealNB

Check out the Opion class. To change the default epoch, change the value of opt.niter, opt.niter_decay.

kkamankun avatar Mar 30 '21 14:03 kkamankun

Check out the Opion class. To change the default epoch, change the value of opt.niter, opt.niter_decay.

thanks! I am sorry for bother you again! I don't know why the mask has been stored in Maskroot, why always masktype = 'center'? The mask in the folder does not seem to be used

GitRealNB avatar Mar 31 '21 03:03 GitRealNB

Check out the Opion class. To change the default epoch, change the value of opt.niter, opt.niter_decay.

thanks! I am sorry for bother you again! I don't know why the mask has been stored in Maskroot, why always masktype = 'center'? The mask in the folder does not seem to be used

why the testdate only output just one figure?

GitRealNB avatar Mar 31 '21 03:03 GitRealNB

If you change the value of self.mask_type to 'random', mask in the folder is used to train the model.

kkamankun avatar Mar 31 '21 05:03 kkamankun

pic = (torch.cat([real_A, real_B,fake_B], dim=0) + 1) / 2.0 torchvision.utils.save_image(pic_1, '%s/Epoch_(%d)_(%dof%d).jpg' % ( save_dir, epoch, total_steps + 1, len(dataset_train)), nrow=2)

pic_1 not defined, 是不是要把pic_1改成pic? 按如上修改后,save_dir not defined 这是为啥呢?是代码执行的先后顺序有问题吗?

你好!请问你这个 save_dir 未定义的问题是怎么解决的?

18130282610 avatar Mar 01 '22 15:03 18130282610

Hi! Do you mean this? torchvision.utils.save_image(pic, '%s/Epoch_(%d)_(%dof%d).jpg' % ( r'F:\save', epoch, total_steps + 1, len(dataset_train)), nrow=2)

18130282610 avatar Mar 01 '22 15:03 18130282610

Hi! Do you mean this? torchvision.utils.save_image(pic, '%s/Epoch_(%d)_(%dof%d).jpg' % ( r'F:\save', epoch, total_steps + 1, len(dataset_train)), nrow=2)

pic = (torch.cat([real_A, real_B,fake_B], dim=0) + 1) / 2.0 torchvision.utils.save_image(pic_1, '%s/Epoch_(%d)_(%dof%d).jpg' % ( save_dir, epoch, total_steps + 1, len(dataset_train)), nrow=2) pic_1 not defined, 是不是要把pic_1改成pic? 按如上修改后,save_dir not defined 这是为啥呢?是代码执行的先后顺序有问题吗?

你好!请问你这个 save_dir 未定义的问题是怎么解决的?

请问save_dir 未定义这个问题您是怎么解决的?

TT-mouse avatar Feb 15 '23 09:02 TT-mouse