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

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024

ความคิดเห็น • 69

  • @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  9 หลายเดือนก่อน

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

  • @CRIMELAB357
    @CRIMELAB357 10 หลายเดือนก่อน +18

    i just want to see one comment that says this worked

  • @vizeverse
    @vizeverse หลายเดือนก่อน +1

    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 !!!

  • @darrenvarley105
    @darrenvarley105 5 หลายเดือนก่อน +1

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

  • @Amir-r2l1h
    @Amir-r2l1h 6 หลายเดือนก่อน +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.

  • @baheth3elmy16
    @baheth3elmy16 6 หลายเดือนก่อน +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.

  • @georgea.3562
    @georgea.3562 11 หลายเดือนก่อน +1

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

    • @codeandbird
      @codeandbird  11 หลายเดือนก่อน +1

      Her new family sends me pictures and vids :)

  • @sambrainard3487
    @sambrainard3487 11 หลายเดือนก่อน +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  11 หลายเดือนก่อน

      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

  • @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?

  • @ArcadeForeverMF
    @ArcadeForeverMF 2 หลายเดือนก่อน

    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?

  • @everythingsfine3064
    @everythingsfine3064 11 หลายเดือนก่อน

    awesome!

  • @infra1
    @infra1 9 หลายเดือนก่อน +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

  • @erdbeerbus
    @erdbeerbus 9 หลายเดือนก่อน +1

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

    • @codeandbird
      @codeandbird  9 หลายเดือนก่อน

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

  • @StudentDrivers-d1t
    @StudentDrivers-d1t 9 หลายเดือนก่อน +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  9 หลายเดือนก่อน +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?

  • @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.

  • @fadysaber-b8p
    @fadysaber-b8p 11 หลายเดือนก่อน +1

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

    • @codeandbird
      @codeandbird  11 หลายเดือนก่อน +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 11 หลายเดือนก่อน

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

  • @SamuelBoreas
    @SamuelBoreas 6 หลายเดือนก่อน

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

  • @julietawibel4793
    @julietawibel4793 9 หลายเดือนก่อน +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  9 หลายเดือนก่อน

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

  • @mrdrsir2324
    @mrdrsir2324 8 หลายเดือนก่อน

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

    • @codeandbird
      @codeandbird  8 หลายเดือนก่อน

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

  • @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.

  • @kimjongoof5000
    @kimjongoof5000 8 หลายเดือนก่อน

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

    • @codeandbird
      @codeandbird  8 หลายเดือนก่อน +2

      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 8 หลายเดือนก่อน

      @@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)

  • @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
      th-cam.com/video/YWsE1qYkVzU/w-d-xo.html

  • @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 👌

  • @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 10 หลายเดือนก่อน

      yes

  • @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.

  • @batvanio
    @batvanio หลายเดือนก่อน

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

    • @mikazukiaugus3435
      @mikazukiaugus3435 17 วันที่ผ่านมา

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

  • @blendfile3_3
    @blendfile3_3 9 หลายเดือนก่อน +1

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

  • @allcash3314
    @allcash3314 8 หลายเดือนก่อน

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

  • @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?

  • @AlizerLeHaxor
    @AlizerLeHaxor 8 หลายเดือนก่อน

    the notebook got banned :(

    • @codeandbird
      @codeandbird  8 หลายเดือนก่อน

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

  • @ROBOTRIX_eu
    @ROBOTRIX_eu 7 หลายเดือนก่อน

  • @discodisco3063
    @discodisco3063 10 หลายเดือนก่อน

    can You explain how to use XL ?

  • @inkyinc2541
    @inkyinc2541 11 หลายเดือนก่อน

    👍