junyanz / pytorch-CycleGAN-and-pix2pix

Image-to-Image Translation in PyTorch
Other
23.09k stars 6.32k forks source link

How to write the inference.py of cyclegan for background interface calls #1493

Open malinjie-hub opened 2 years ago

malinjie-hub commented 2 years ago

I have trained the cyclegan algorithm, but it needs to be deployed in the cloud. My algorithm needs to be adjusted in the background, and an inference.py of cyclegan is required.

taesungp commented 2 years ago

Not sure if we can help you with that, as the details can be very diverse. I think you can write your own code by looking at test.py, which shows how to instantiate the model and do inference.