JCBrouwer / maua-stylegan2

This is the repo for my experiments with StyleGAN2. There are many like it, but this one is mine. Contains code for the paper Audio-reactive Latent Interpolations with StyleGAN.
https://wavefunk.xyz/audio-reactive-stylegan
179 stars 29 forks source link

Uploading my own network #11

Closed kirkegross closed 3 years ago

kirkegross commented 3 years ago

Hi!

Thanks for this code. If I want to upload my own model can it be and .h5 file? And how exactly should I upload it?

Screenshot 2021-02-03 at 13 58 08

Best, Kirke

JCBrouwer commented 3 years ago

Hello,

You can upload your model in a couple different ways. Probably the easiest/fastest is to upload it to your own google drive and then put the link to it in !gdown ... . Alternatively you can mount your drive to the colab and access it from there.

You can also just drag and drop it into the file browser on the left of colab, although in my experience the upload and download speed directly to colab is suuuper slow.

.h5 won't work right away, the convert_weight.py script expects a .pkl. What repository did you use to train the .h5 model? Maybe there's also something to convert to .pkl or .pt from there? Otherwise you'll need to write the conversion yourself or find someone else that's done it online.

kirkegross commented 3 years ago

Thank you!