I used this https://www.tensorflow.org/tutorials/generative/style_transfer

  • Funicio [he/him]
    hexagon
    ·
    edit-2
    4 years ago

    Since it's not really super obvious how you would do this yourself, I should explain the procedure:

    1. Go to the link I posted
    2. Click on Run in Google Colab
    3. In the left hand side of the screen, there's a files menu. The third folder has a Google Drive symbol, you can click on it and it will open a cell that will allow you to link your Google Drive. You could also upload the files directly, but I was doing a lot of them so I preferred using Drive.
    4. Run all the cells up to the one with this code, and put the path to the files here:

    content_path = <the image you're gonna do the style transfer to>
    style_path = <style image>

    1. Run the rest of the cells until the one with the Fast Style Transfer... header, that's the one that will give you your output.