Train your own LORA model in 30 minutes LIKE A PRO!

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 71

  • @Justsomeloner-u1r
    @Justsomeloner-u1r 10 місяців тому +11

    Your'e a life saver.Can't thank you enough. Since the Google colab file really changed, it was hard to follow any other tutorial. Your saved version of Google colab file really helped! The newer version had some weird problem, it was not detecting any of my images. This tutorial was really easy to follow. But your copy of google colab was the real MVP for me. Thanks and keep making these tutorial.

    • @codeandbird
      @codeandbird  10 місяців тому

      Glad it was helpful! I haven't seen the new colab yet, but hope you'll figure out how to use it too :)

  • @baheth3elmy16
    @baheth3elmy16 7 місяців тому +2

    Great tutorial. Sadly, when I ran the training using your Colab copy, I got this error: RuntimeError:
    CUDA Setup failed despite GPU being available.

  • @robwahl
    @robwahl 5 днів тому

    "errorCode=24 Authorization failed." - When selecting Stable-Diffusion-v1-5, is there a way to point to a functioning URL?

  • @Amir-r2l1h
    @Amir-r2l1h 7 місяців тому +2

    I triple checked everything but I get this error. Would you help me out please?
    CUDA backend failed to initialize: Found cuDNN version 8700, but JAX was built against version 8904, which is newer. The copy of cuDNN that is installed must be at least as new as the version against which JAX was built. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
    /content/LoRA/config/config_file.toml not found.

  • @vizeverse
    @vizeverse 2 місяці тому +2

    Probably you don´t know it but is really funny that you choose a parrot to train a Lora wich in Spanish is called Loro, :-) Nice tutorial !!!

  • @saintgio3
    @saintgio3 7 місяців тому

    You mention the sampler DDIM helps to not lose much quality in training. I was under the impression that samplers were just used for generating sample images, and not affecting the actual training itself. Will you elaborate on this?

  • @shig100
    @shig100 7 місяців тому

    Thank you for the tutorial!
    4.2.3 On the custom captioning when I execute, I'm getting this error:
    " in :23
    NameError: name 'train_data_dir' is not defined"
    I know it's referring to the path but not sure what I have to change. right now I have /My Drive/ LoRA/train_data/my_photos
    Thanks in advance any help is appreciated.

  • @ahmadzaini
    @ahmadzaini 7 місяців тому

    After successfully making one lora, if I want to make another lora I have to start from the beginning again or where can I start?

  • @sambrainard3487
    @sambrainard3487 Рік тому +2

    Took all of the steps you did... still wasn't able to get an output folder or a config folder. Any thoughts on how to fix this?

    • @codeandbird
      @codeandbird  Рік тому

      Could be mistake in one of the paths? Try them without drive/MyDrive/ part maybe? Also make sure you allowed colab to write on google drive

  • @darrenvarley105
    @darrenvarley105 5 місяців тому +1

    Thank you. I want to do one for myself and one for my dog.

  • @ArcadeForeverMF
    @ArcadeForeverMF 3 місяці тому

    Hi I used some months ago your notebook with success, but I try it today and I get a lot of errors:
    ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
    tf-keras 2.15.1 requires tensorflow=2.15, but you have tensorflow 2.16.2 which is incompatible.
    torchaudio 2.3.0+cu121 requires torch==2.3.0, but you have torch 2.1.0 which is incompatible.
    torchtext 0.18.0 requires torch>=2.3.0, but you have torch 2.1.0 which is incompatible.
    Has u an id how resolve this error?

  • @infra1
    @infra1 10 місяців тому +3

    I've noticed the Google collab notebook no longer works. It seems to no longer have CUDA resources? Anyone else run into this?

    • @codeandbird
      @codeandbird  8 місяців тому +1

      Can be just the wrong cuda version, or you need to switch your runtime to gpu

  • @StudentDrivers-d1t
    @StudentDrivers-d1t 10 місяців тому +1

    I managed to run through this successfully a couple of times, but all of a sudden I am now getting the following error every time I start to train: "CUDA backend failed to initialize: Found cuDNN version 8700, but JAX was built against version 8904, which is newer. The copy of cuDNN that is installed must be at least as new as the version against which JAX was built. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)"
    I've tried multiple gmail accounts as well to no avail. Is the google colab broken?

    • @codeandbird
      @codeandbird  10 місяців тому +2

      which colab do you run? the one I saved to gdrive or the original one? whichever it is, try to run another one:)
      if it won't help, i recommend you to google the error and see what people say, usually
      adding a cell to the colab and force install the right version of the lib it complains about will fix it

    • @My_Chaotic_Record_Collection
      @My_Chaotic_Record_Collection 9 місяців тому

      @@codeandbird it is confirmed that your version still works? Thank you for your work

    • @aseideman
      @aseideman 8 місяців тому

      same error, did you find a fix?

    • @codeandbird
      @codeandbird  8 місяців тому

      Check if you run runtime with GPU

    • @DavidCoffey-i1q
      @DavidCoffey-i1q 7 місяців тому

      Just got the same error. Did you find a way to fix this?

  • @erdbeerbus
    @erdbeerbus 10 місяців тому +1

    is there an option to train a lora localy? on my own pc? thx in advance!

    • @codeandbird
      @codeandbird  10 місяців тому

      Yes you can do it locally too, if your hardware is powerful:)

  • @CRIMELAB357
    @CRIMELAB357 10 місяців тому +18

    i just want to see one comment that says this worked

  • @fadysaber-b8p
    @fadysaber-b8p Рік тому +1

    what about using SDXL model instead of SD1.5 or SD2 , does this colab can use it ?

    • @codeandbird
      @codeandbird  Рік тому +3

      no, this one won't work, but there is a colab for XL from the same author too - colab.research.google.com/github/Linaqruf/kohya-trainer/blob/main/kohya-LoRA-trainer-XL.ipynb you can use it :)

    • @fadysaber-b8p
      @fadysaber-b8p Рік тому

      Thanks a lot , and keep going with more tutorials @@codeandbird 👍

  • @kimjongoof5000
    @kimjongoof5000 9 місяців тому +1

    would it be a bad idea to have like 70 pictures?

    • @codeandbird
      @codeandbird  9 місяців тому +3

      you can have as many pictures as you want, just make sure that all the pics are different - it doesn't make sense to use many similar pics, it will slow down training and won't make results better

    • @kimjongoof5000
      @kimjongoof5000 9 місяців тому

      @@codeandbird Well... I want the AI to make pictures of this "Geumsaegi" character from a badly drawn TV show called "Squirrel And Hedgehog" (look it up). Pictures of the character in full body are few and far between and most of them, despite being drawn by human artists back in the 90s and 2000s, look like badly done AI pictures (I am not kidding)

  • @mrdrsir2324
    @mrdrsir2324 9 місяців тому

    Is this notebook still working? i heard that some simmilar note from civitai lora tutorial was banned by google.

    • @codeandbird
      @codeandbird  9 місяців тому

      it works for me with colab pro - not sure about the free tier though

  • @danielortizespinoza740
    @danielortizespinoza740 10 місяців тому

    Hello! I found your video, and I just wanted to say спасибо тебе большое!! (Увидел, что твой Драйв на русском 😅). But I had a question. Does the use of google colab for stable diffusion depend on my GPU? I know that Stable Diffusion doesn't work for AMD processors, which is my case.

    • @codeandbird
      @codeandbird  10 місяців тому +1

      Ah thank you glad it was helpful ☺️ It doesn’t matter what gpu you’ve got, it all runs in colab environment, so you should be fine 👌

  • @georgea.3562
    @georgea.3562 Рік тому +1

    Cool stuff! btw have you kept contact with your bird? So cute!

    • @codeandbird
      @codeandbird  Рік тому +1

      Her new family sends me pictures and vids :)

  • @julietawibel4793
    @julietawibel4793 10 місяців тому +2

    There is an error: ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
    pandas-gbq 0.19.2 requires google-auth-oauthlib>=0.7.0, but you have google-auth-oauthlib 0.4.6 which is incompatible.
    How Can I Solve it? Thanks

    • @codeandbird
      @codeandbird  10 місяців тому

      Hmm, not sure, does the notebook still run with this errors? I think you probably could ignore it if it works

  • @discodisco3063
    @discodisco3063 11 місяців тому

    can You explain how to use XL ?

  • @talhak3667
    @talhak3667 11 місяців тому

    how can we upload the model on the replicate after training?

    • @codeandbird
      @codeandbird  11 місяців тому +2

      Personally I've never done that, but there's a guide on the website replicate.com/docs/guides/push-a-model Try it out, for now, maybe I'll do a video about it later.

  • @RianTuanakotta
    @RianTuanakotta 11 місяців тому

    can you train models in google colab without premium subscription?

    • @codeandbird
      @codeandbird  11 місяців тому

      Haven’t tried, but I guess even if you can - it’s gonna be slow

    • @sylvia4764
      @sylvia4764 11 місяців тому

      yes

  • @DavidCoffey-i1q
    @DavidCoffey-i1q 7 місяців тому

    At around 15:23 you say “…then we go into our web UI, you remember in the last video I showed you how to upload LoRAs here.” Where is our web UI (do you mean Google Drive?) and where is this previous video please? You mention the video again at 16:33 without telling us where it is.

    • @codeandbird
      @codeandbird  7 місяців тому

      I was talking about this one: Forbidden Desires: Generate Adult Content with AI
      ua-cam.com/video/YWsE1qYkVzU/v-deo.html

  • @SamuelBoreas
    @SamuelBoreas 7 місяців тому

    I have no Lora folders in my drive...and they won't create.

  • @ROBOTRIX_eu
    @ROBOTRIX_eu 7 місяців тому

  • @everythingsfine3064
    @everythingsfine3064 11 місяців тому

    awesome!

  • @inkyinc2541
    @inkyinc2541 Рік тому

    👍

  • @AlizerLeHaxor
    @AlizerLeHaxor 9 місяців тому

    the notebook got banned :(

    • @codeandbird
      @codeandbird  9 місяців тому

      it works for me with colab pro - not sure about the free one though

  • @ceegeevibes1335
    @ceegeevibes1335 Місяць тому

    unfortunately the amount of free use of colab is so minimal today that even if you have success of running this process ( i had ) it will cancel and ask you for money.

  • @Tryhard5k
    @Tryhard5k 21 хвилина тому

    It already broke.

  • @blendfile3_3
    @blendfile3_3 9 місяців тому +1

    сначала не понял почему гугл на русском xd

  • @allcash3314
    @allcash3314 9 місяців тому

    Очень сложно. Можно было бы и по русски(((

  • @batvanio
    @batvanio Місяць тому

    This was useless to me. I want to do this on my computer, not in a cloud service.

    • @mikazukiaugus3435
      @mikazukiaugus3435 Місяць тому

      Hi, have you found a way to do it locally on computer?