Closed fengfenglong123 closed 8 months ago
In pytorch's recent updates, the make_grid function doesn't take 'range' argument. Either remove the range=(-1., 1.))
argument from the function call, it will take the default values (min, max from the tensor), or you can replace the range
parameter by value_range
your call should look like:
writer.add_image('sample', vutils.make_grid(samples, nrow=1, normalize=True, value_range=(-1, 1)), it+1)
let me know if it works :)
Thank you for providing the method. I used the method you mentioned and it worked so well that the model could be trained, but I would like to know how you came up with this modification. In addition, I have a question. When I open the NVIDIA-SMI backend, I see that the usage of graphics memory is only 3G, but I currently have 24GB. I would like to know how to modify it to increase my existing usage.
Great, I just went through the official documentation of the PyTorch. And about the GPU usage, you can set the application priority higher to get maximum resources allocated to it. Also, you can change the PC power plan to high performance to get the max usage. By default, the application resource allocation depends upon various factors, such as battery saver plan, background processes and application holding up the resources. If you are looking to set an app getting maximum resource allocated to it, refer to some custom methods on YouTube.
Okay, thank you for your guidance.
It works, thanks!!!
Thank @fengfenglong123 for raising up this issue and thank @ghubrakesh for the great solution! I've pushed a fix in https://github.com/elvisyjlin/AttGAN-PyTorch/commit/be2d6c68049eeae4082365738b807aa49d214e77 to close this issue.
thank you so much! Love you!!
Hello, I encountered a bug while running this project. Is there any way to solve this bug