Morphing NVIDIA StyleGAN2 ADA Pytorch Between Real Photos your GAN Doppelganger

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025
  • Did you know you can find your GAN Doppelganger in the latent vector space of NVIDIA StyleGAN2 ADA? I provide a Colab notebook that contains all that you need to create your own morph videos between any two photos of people's faces.
    2:12 Opening the CoLab Notebook
    2:38 Use a Free Google GPU
    2:52 Running the CoLab Notebook
    3:27 Uploading the Starting/Stop Image
    4:04 Installing StyleGAN2 ADA
    4:15 Preprocessing Images for StyleGAN2
    5:21 Converting Images to StyleGAN2 Latent Vectors
    7:19 Building the Morph Video
    8:17 Conclusion
    Notebook used in this video:
    github.com/jef...
    Generating GANs:
    github.com/jef...
    Deal with CoLab timeout:
    stackoverflow....
    Download Images from Flickr
    github.com/jef...
    Follow Me/Subscribe:
    / heatonresearch
    github.com/jef...
    / jeffheaton
    Support Me on Patreon: / jeffheaton

Комментарии • 50

  • @franciscog5261
    @franciscog5261 3 года назад +2

    Hello.
    Wow! I was waiting for that video for months! Quite likely you are the first person to implement this in colab, or at least in making it public.
    This can be also done by installing stylegan locally, but it is so much easier to simply use colab.
    Thanks a lot for sharing your work, very interesting.
    I will be looking forward for this code explained.
    Thanks again :)

    • @HeatonResearch
      @HeatonResearch  3 года назад

      Thanks, yes I usually get it working on my local Linux system, then try to demo it on CoLab for RUclips, if I can fit it into CoLab.

  • @rahimnealyakoob5968
    @rahimnealyakoob5968 3 года назад +2

    Excited for your future graphic machine learning ! really learn a lot from your videos.. thank you

    • @HeatonResearch
      @HeatonResearch  3 года назад +1

      Happy to hear that! More will be coming. Of course, make sure to subscribe so you do not miss anything! :)

  • @Tomas-bi7dy
    @Tomas-bi7dy Год назад

    great video! would be great to see the deep dive and how to make work that transition with a sequence of images

  • @henkhbit5748
    @henkhbit5748 2 года назад

    Yes , more detail on the code. Grest video Thanks

  • @jeanviet
    @jeanviet 3 года назад +1

    Great tutorial and great Google colab code ! The morphing is really smooth and realistic. I subscribe to see other good stuffs like that

  • @vratislavruzek2264
    @vratislavruzek2264 Год назад

    Hello
    I am looking for hint for an algorithm that can morph simple shapes like a triangle into a square or two circles into one circle.
    I would be thankful for any directions or links.

  • @Matice.mp4
    @Matice.mp4 3 года назад

    Great video, exactly what I have been looking for! Straight and to the point, and the result is great. Thank you for sharing all your work with the internet. So appreciated

  • @jasmine8182
    @jasmine8182 Год назад

    thanks for this jeff ! does anyone have any slightly more updated versions of how you might do this?

  • @debasisharout8353
    @debasisharout8353 3 года назад

    you are great sir
    You are giving extraordinary knowledge to students

    • @HeatonResearch
      @HeatonResearch  3 года назад

      Thanks! I have alot of fun in the process.

  • @rp.1408
    @rp.1408 2 года назад

    How can I do this for other set of images that are not faces?

  • @jasmine8182
    @jasmine8182 Год назад

    is there a way to batch do this with a series of images?

  • @SalmanIbne
    @SalmanIbne 3 года назад

    Awesome, Thanks for sharing Jeff!

  • @dinugakasun5218
    @dinugakasun5218 3 года назад

    Superb. we need more tutorials like this.

    • @HeatonResearch
      @HeatonResearch  3 года назад +1

      Thank you, I will. Make sure to subscribe so you do not miss any!

  • @katherinemazzei9888
    @katherinemazzei9888 2 года назад

    Thank you so much! Amazing channel

  • @robinstadtler9748
    @robinstadtler9748 3 года назад +3

    deep dive into code &execution pls

  • @liebespaar93
    @liebespaar93 3 года назад

    너무너무!! 고마워요!!!
    THX~ so~~~~!!! much~~!!

  • @franciscog5261
    @franciscog5261 3 года назад

    Hi!
    I have been testing your morphing notebook for a while, and I have a couple of questions, hope you don't mind.
    It seems like it is difficult to get a projection that looks similar pictures of small kids. Could it be because the training set used, was trained mainly with faces of adults?
    Also I tried to use the face of Homer Simpson, but the face detector won't recognize a face there. Is it possible to modify the face detector, to be able to morph between those cartoon faces?
    And last, I guess it shoud be possible to morph between two different shapes, such as, the projection of a face, and the projection of, let's say, a butterfly.
    Having the two projections: would the process be the same as done when morphing between two different face projections on this notebook?
    Thank you, and thanks for sharing your research work. Looking forward for more morphing tutorials :)

  • @riogerz
    @riogerz 3 года назад

    I always get error when I go to upload an image

  • @alexnieto5036
    @alexnieto5036 Год назад

    Fantastic!

  • @alexijohansen
    @alexijohansen 3 года назад

    Thanks Jeff. I’m currently trying to do something similar with a vae.

  • @Dominique-rv5ct
    @Dominique-rv5ct 3 года назад

    Really nice work and very interesting content. I'm wondering if it would possible to use GANs to combine (let's say) 4 faces and generate a new one out of them?

  • @JaapioNL
    @JaapioNL 3 года назад

    After setting up stylegan2 (thanks for the video by the way) I wrote something similar to this. I made the code go through several latend vectors. I noticed that times half way between some faces holes could appear in noses or weird growth would cover faces whilst in between faces. I think I know why but I don't know how to explain it in English. 😆

  • @95TBake
    @95TBake 3 года назад

    Does this compute on client side or server side @ Nvidia?

  • @MrDavidrees87
    @MrDavidrees87 2 года назад +1

    Amazing video! If you are using your own pre-trained data which is not human faces will you need to something different for the pre-processing? If so have you done any videos on how to go about that? Thanks Jeff, your videos are so helpful!

  • @XX-vu5jo
    @XX-vu5jo 3 года назад

    To what direction are you headed with these? I mean, what's a more meaningful uses for this aside from entertainment?

    • @HeatonResearch
      @HeatonResearch  3 года назад

      Its been a common request. It also shows how to map a real image to the GAN latent vector space.

  • @PepeTostado
    @PepeTostado 3 года назад

    Awesome, when are you uploading you going through the code

  • @ashuk206
    @ashuk206 2 года назад

    This is amazing! Do you think you could make a notebook that can modify some of the latent vector's (i.e. the stylegan doppelanger's) features? I have seen some repos and papers explore the latent space dimensions allowing them to modify things like gender, hair, ethnicity, etc.

  • @javierrodriguezbustos3348
    @javierrodriguezbustos3348 3 года назад

    So Cool Edition 😊 😊 😊

  • @omarsh82
    @omarsh82 3 года назад

    way more useful than my Asda toilet paper that broke on me.

  • @nandansingh9130
    @nandansingh9130 3 года назад

    please make a video on code explaination of this video

  • @sepeslurdes1918
    @sepeslurdes1918 3 года назад

    Dear Jeff.. does that mean you cant morph one of your gan-fishes into another? only human faces?
    Great stuff btw.. Currently preparing my dataset to use it with your code ⚽

    • @HeatonResearch
      @HeatonResearch  3 года назад +1

      Yes I can morph one fish to another. But if I used the fish GAN as the starting point, and used Thor and I, we would both be projected into fish GAN space, which would not be optimal.

  • @Jennifer-yz6uq
    @Jennifer-yz6uq 3 года назад

    Nice work but it's time consuming and after waiting for an hour it returns from starting

  • @DukeAbbaddon
    @DukeAbbaddon 3 года назад

    Hail THOR ^^ We know who you are ^^

    • @HeatonResearch
      @HeatonResearch  3 года назад

      Hah! By the way, is anyone else looking forward to season 2 of Ragnarok? Binge watching season 1 is at least partly to blame for my choice of images.

    • @DukeAbbaddon
      @DukeAbbaddon 3 года назад

      @@HeatonResearch My mum ha

  • @javierrodriguezbustos3348
    @javierrodriguezbustos3348 3 года назад

    I love Thor, My Favorite Avenger 😇 😇 😇

    • @HeatonResearch
      @HeatonResearch  3 года назад +1

      Hah, yes me too. I did try to do Elon Musk to Tony Stark, but the GANs could not deal with Tony's facial hair pattern.

  • @erickwalterbutler2816
    @erickwalterbutler2816 3 года назад

    lol 4:25