Chen Weiyan
Results
1
issues of
Chen Weiyan
``` def aesthetic_loss_fn(aesthetic_target=None, grad_scale=0, device=None, accelerator=None, torch_dtype=None): target_size = 224 normalize = torchvision.transforms.Normalize(mean=[0.48145466, 0.4578275, 0.40821073], std=[0.26862954, 0.26130258, 0.27577711]) scorer = AestheticScorerDiff(dtype=torch_dtype).to(device, dtype=torch_dtype) scorer.requires_grad_(False) target_size = 224 def loss_fn(im_pix_un): im_pix =...