KURUVILLA_ABRAHAM:

        styleGAN_transformedimage = [get_dominant_color(x) for x in styleGAN_transformedimage]



Hi Patrick,
I converted  this as a tensor back  as i am sending the the image in PIL format to the below function(get_dominant_color)

Code
styleGAN_transformedimage = [get_dominant_color(x) for x in styleGAN_transformedimage]
What way i can do this to retain it as a tensor
Also what “detaching the computation graph” mean ?what have to do to fix this in the step ?
Avg_color = [torch.tensor(x,dtype=float,requires_grad=False) for x in styleGAN_transformedimage]