4GB total memory might not be enough to train CycleGAN, but I haven’t verified it.
Could you check, if your code is working on Colab?
If I’m not mistaken, they are providing GPUs with more memory.
PS: As always, it’s better to post code instead of pictures.