The generator might be a bit trickier, since your output shape of odd in one dimension, which doesn’t fit the “doubling” of the spatial size as is currently used (1x1 → 4x4 → 8x8 → 16x16 → etc.).
To create your desired output shape you would thus need to adapt the transposed conv layers and use their output_size argument in their forward operation if needed.