How To Install Audiocraft Locally - Meta's FREE And Open AI Music Gen

Поділитися
Вставка
  • Опубліковано 7 сер 2024
  • In this video, we'll learn how to install Audiocraft, the new open-source and free AI music and sound effect generator from Meta AI. I go over both Musicgen and Audiogen.
    Enjoy!
    Join My Newsletter for Regular AI Updates 👇🏼
    www.matthewberman.com
    Need AI Consulting? ✅
    forwardfuture.ai/
    Rent a GPU (MassedCompute) 🚀
    bit.ly/matthew-berman-youtube
    USE CODE "MatthewBerman" for 50% discount
    My Links 🔗
    👉🏻 Subscribe: / @matthew_berman
    👉🏻 Twitter: / matthewberman
    👉🏻 Discord: / discord
    👉🏻 Patreon: / matthewberman
    Media/Sponsorship Inquiries 📈
    bit.ly/44TC45V
    Chapters:
    0:00 - Intro
    0:11 - Musicgen Installation
    3:13 - Audiogen Installation
    Links:
    Install Instructions: gist.github.com/mberman84/afd...
    Audiocraft Github - github.com/facebookresearch/a...
    Audiogen PR - github.com/facebookresearch/a...
    Audiocraft Announcement - about. news/2023/08/aud...
  • Наука та технологія

КОМЕНТАРІ • 136

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

    Awesome man. Thank you. I'm trying to learn this stuff and these step by step tutorials help let me know what's possible.

  • @ultimategolfarchives4746
    @ultimategolfarchives4746 Рік тому +14

    Ask gpt to write a very long descriptive prompt (150 words and +) and use the large model. Results is absolutly breathtaking. If your music sample is long, ask gpt to add description for the overall timeline as well.

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

      This is debatable.

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

      @@cristian15154 I'll have to agree haha. Yesterday was giving excellent résults, but it was the opposite with my series of test tonight. It tend to get stuck on a note for a while... You have the same problem ?

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

      can you share the prompt that generated a great output? @@ultimategolfarchives4746

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

    Great video as always!

  • @marcfruchtman9473
    @marcfruchtman9473 Рік тому +5

    Wow... This seems really interesting. When you say "any" audio sound effect, I would have really liked a few more examples!
    This could have a reverberating effect in the soundFX industry...

  • @satheng931
    @satheng931 Рік тому +12

    I've been dying for an audio gen that does >30 second clips. Can't wait to install this, thanks for the update and another great tutorial.

    • @matthew_berman
      @matthew_berman  Рік тому +4

      You got it! This one does up to 2 minutes.

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

      audio webui does longer than 2 minutes

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

      @@matthew_berman audio webui does unlimited time

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

      Audiogen+ have been out for weeks now and can generate 5 minute audio clips.

    • @Razumen
      @Razumen 8 днів тому

      @@digidope Is this still recommended? I'm looking for one that will generate music from files as references.

  • @thisisCharismatic
    @thisisCharismatic Рік тому +6

    Absolutely love your videos very easy to follow. I’m curious how you setup your terminal

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

    Astonishing Matthew, as always 🚀

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

    Thank you for helping us with the mouse cursor. I always have a hard time following a regular cursor.

  • @user-bm9oy4gx2l
    @user-bm9oy4gx2l Рік тому +6

    to use gpu, 'conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia' // after install pytorch with cuda and then 'python -m pip install -r requirements.txt'

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

    Very cool!

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

    Hi Sir, i've got the following error "RuntimeError: ffmpeg not found." at the end of the 500 steps (even if i had installed the ffmpeg) Do you have any idea?thanks

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

    God damn! Thanks for the instructions how to install it, really useful

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

    this is great - I removed the --share part of the python app command as it looked like it was creating a public url on my machine 🙂

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

    Cool. GJ!

  • @theit-unicorn1873
    @theit-unicorn1873 8 місяців тому

    Great video. It took me a while to get this all working with musicGen, I had to manually install a few of the requirements and try different versions of Nvidia Cuda. Ultimately got it working, and it's really fun to play with. Do you know if anyone has cracked the 2 minute max? Also, what's with the public URL that spins up when we start the local instance? Thanks again for the great vid.

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

    thank you so much for the guide! I have to admit the results are pretty much useless, at least with 5-60 seconds of generation. I had completely inconsistent results, that had close to none connection to the original prompt.

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

    Hi Matt!
    So that we can install with No hiccups?
    Can you share your Mac model? memory & hard drive space?
    Lastly, so we can block it out...how long did it take for everthing including downloading the Models?
    Thanks in advance! For doing so!

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

    Hey, great video man! Do you think you could develop the tool, and give the possibility to enter a number of file to upload more than 1. That way for example, we could upload 10 songs, and let the AI creating a new song based on these 10. Would be pretty amazing I think!

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

    Install failed, I got about 1/2 way through then it says .... "git is not recognized as an internal or external command"

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

    Got it to work one time, and the for some reason when I try again it fails. Tried reinstalling from scratch and keep getting the error: " ERROR: Failed building wheel for xformers" went online: others experiencing the same problem and so far, can't find an answer. Any clues?

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

    Bro you vids are so goood Plz make one about Gorilla!

  • @__--JY-Moe--__
    @__--JY-Moe--__ Рік тому

    judging from the thumbnail, this looks priceless! ears should be really clean!!

  • @Rapscallion2009
    @Rapscallion2009 4 місяці тому

    Mine is also generation on the CPU only. I would imagine this is something that the GPU would do better (although it might be too big for vram) but I've no idea if/how you'd instruct it to use the GPU. It works, though.

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

    I knew this would come but my mind is blown away. Sad thing is that it's harder to describe a music than an image.

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

    Hello! I'm new to installing AI environments on my computer and not super well versed in working in the terminal in general. When I open up terminal it just has "my username@the computer ~ %" and then the solid box to type in a command. I see the one here that says "(base) -> ai projects." Do I need that? And if so, how do I get it? Am I even in the right application? lol Also, when I typed in "conda" I got a message that says "command not found: conda." So I downloaded Anaconda as opposed to Miniconda, just to be sure, reran the command and got the same message. I would appreciate any help I can get. I'm guessing I'm way over my head, and so if trying to quickly explain what I'm missing is too much, I completely understand. But even if you could just point me in the right direction I would sincerely appreciate it. Thanks!

  • @visserwang4405
    @visserwang4405 6 місяців тому

    Any idea I got this error: "PermissionError: [WinError 32] The process cannot access the file because it is being used by another process"??

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

    Amazing Matthew; If I could, I would subscribe again :)

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

    What's the configuration of your computer?

  • @jonathandemonchy9508
    @jonathandemonchy9508 2 місяці тому

    Thank you for your video! Is it possible to create an Acapella with this AI, I am looking for a model that allows me to create a similar Acapella, of music that already has a singer

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

    The default model directory is to C disk, is there a way to change it? 🤔

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

    tried to run audiogen after installing musicgen and changing branches, but this happened. AttributeError: module 'gradio' has no attribute 'Progress'

  • @_QUI__
    @_QUI__ Рік тому +5

    Thanks Matthew! I got it working but ran into one issue (and solution) on my setup (M1 MacStudio 128GB). Following along exactly my installation errored when installing Xformers. The solution for me was to delete Xformers from the requirements.txt file then try installing again. It finished the install perfectly. Then when I ran "python -m demos.musicgen_app --share" it failed to load saying it was missing Xformers. Then I put Xformers back in the requirements.txt and ran "python -m pip install -r requirements.txt" again. This time Xformers installed correctly and now it's all working.

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

      (audiocraft) F:\Music\audiocraft>python -m demos.musicgen_app --share
      WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions.
      I am getting this error message. Can you help?

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

      I got the same error. Say's its a problem with the package module.

    • @dgodiex
      @dgodiex 11 місяців тому +1

      Same error, tried your solution, but the second time trying to install Xformers Ive got the same problem again.. Any idea?

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

      @@dgodiex you need PyTorch which isn’t in the steps they assume you have all of the stuff already

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

    I got an error on the "PYTHON -M PIP INSTALL --share" step - not sure what to do next, it just says theres a problem with the module and it quits. It was going really well up until that step.

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

      manually installed PYTORCH and it works i think

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

      im in - i was typing a . instead of a _ in musicgen_app - once i fixed that it went - downloading modules now i hope its going!

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

    How do I make all this work on my graphics card?

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

    Do you have any idea if Apple Silicon graphic cores are or can be used? I looked in documentation but don't see any clues. thx

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

      It runs fine on Mac studio M2, takes around 30 GB of memory.

    • @kabuyaoyao
      @kabuyaoyao 6 місяців тому

      Lol I guess my 8GB Macbook Air M1 can't handle this.@@carloshanneman

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

    Can this fine tune the existing audio file in terms of sound engineering like reverb, denoising, stereoing etc?

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

      There is finetune code out there if you want to try to train your own models for stereo etc. Have not tried it yet myself.

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

      @@digidope Okay

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

    how do you run it in gpu?

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

    It works, thanks!
    But why does it use cpu instead of gpu? Is it normal or I should look for a solution?

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

      There’s probably a solution, I just wasn’t able to find it by the time I wanted to post the video.

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

      @@matthew_berman It runs on GPU by default. Not sure how you managed to run it on CPU.

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

    audio webui has all the voice audio and music all in one with some extras

  • @Alpha-my4kf
    @Alpha-my4kf Рік тому +2

    Noice

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

    how to make it use GPU instead CPU?

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

    is this the same thing from your past video "How to Install Meta's FREE Text-to-Music AI Generator Locally (AudioGen)" ?

  • @nick777-oo1wc
    @nick777-oo1wc Рік тому

    Nice. how about a google colab version?

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

    How to install meta musicGen Model ? If possible please make a video How to install Model in musicGen .

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

    unable to install xformer on my mac book pro 2017 model.

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

    It's great, but I'm really waiting and searching for audio restoration Ai tools, esp podcasts, which still made really low quality, there's almost no choice. Adobe provides a demo tool, but it's very bad with non-English podcasts. Other tools very hard to install and they work only with raw wave audio, anyone can calculate how hour podcast in wave format will be many gigabytes only for one file, and I need to restore a list of podcasts.

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

      iZotope RX is pretty good for audio restoration. AI tools are stil quite far from that due the very low quality they use.

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

      @@digidope thanks for advice, I will check.

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

    Thanks for the video. Can anyone verify if the process is the same for PC?

    • @matthew_berman
      @matthew_berman  Рік тому +5

      It is. Check out the description for my installation instructions, I modified it for PC as well.

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

      @matthew_berman Thank you sir. Always appreciated

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

    'brew' is not recognized as an internal or external command,
    operable program or batch file.

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

    Thank you for making this video: installs like these can have so many hurdles is you don't do them all the time. I do think you forgot step 1, though: install anaconda haha.

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

      Anaconda required for most of my tutorial videos :)

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

    No GPU support? Why?

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

    what about adding lyrics? Will it sing the song with lyrics?

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

      I don't think so...but you can sing along :)

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

      Oh okay. I saw another AI application that adds the lyrics into the song. The user will write the lyrics and the AI will sing it into the audio generated file

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

      ​@@emmanuelkolawole6720which?

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

    conda install -c conda-forge ffmpeg
    If you are on Windows though Anaconda

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

    What's the difference between musicgen and audiocraft?

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

      Audiocraft is like the base of musicgen and audiogen, musicgen is for generating music, and ofc the audiogen is for sound effects

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

    Qwen-7B: Alibaba's NEW Opensource LLM

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

    Why would you want it locally?

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

    Did anybody tried to make any swosh, clicks and these kinds of sound effects, it would save a lot of money buying and searching for these files for video transitions or web effects.

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

    'ai' is not recognized as an internal or external command,
    operable program or batch file.

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

      "ai projects" is part of his prompt. i.e., you only type what comes after it, for the first command it would be "conda create -n ac python=3.9" (without the quotes).

  • @moonduckmaximus6404
    @moonduckmaximus6404 6 місяців тому

    WHAT IF YOU DONT KNOW WTF A CONDA ENVIRONMENT IS?

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

    Dude, you have some crazy people in your comments 😵‍💫

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

    God. Developers who use a Mac should have their own internet so they stop suckling off ours built on machines that let us do what we want.

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

    Only the code is open-source.

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

    For 30 second melodies works well, and actually the melody model is the best, but any model after 30 seconds still sucks.

    • @333_Tarot
      @333_Tarot Рік тому

      Which ones did u compare?

  • @coolorphans
    @coolorphans 4 місяці тому

    conda create -n ac python=3.9
    conda activate ac

  • @MrRaja
    @MrRaja 2 місяці тому

    My conda just doesn't work anymore... i am about fully factory reset my garbage PC there is so much shit that just doesn't work like i see in tutorials. Windows 10 sucks!

  • @WillFalcon
    @WillFalcon 2 місяці тому

    As always as all facebook can create is a low quality shht

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

    Played around a bit and the results are really shit...especially for melody conditioned generation.

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

    My man, I think mainstream people use PCs You should make tutorials on windows only.

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

      I use a PC, but not Windows. It's the same process for Windows, Linux, etc... it's just a conda virtual environment.

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

      I do both PC and Mac

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

      @@matthew_berman That's what she said 🙂

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

    There goes the junior musician/sound engineer job!
    Amazing, this technology is going to create such a void in this world that will be filled with blood and destruction. Unless UBI is implemented

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

      There will still be need of artists to be able to create good music/sound, as of now think of these tools as assistants as the quality of the generated content isn't as good

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

      ​@@just_one23
      👍Agreed!
      For anyone thinking this is the End of your careers?
      (& UBI is meeded? 👎)
      This is our glorious beginnings!
      Your glass is now! Half-Full!

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

      Not for a while. The quality is really low and you cant really control the output.

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

      Every time I see comments like yours it seems clearer to me that all this discussion about "we will be replaced at work by AI" is simply cheap sensationalism and an ideological excuse to lead to something that does not make the slightest economic sense like UBI.

    • @20thingsgoing62
      @20thingsgoing62 Рік тому

      @@digidopewho cares about control? 😂 its over

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

    dude this is not enough, it will be without cuda

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

    Just don't ask it to make chiptunes - absolutely devastated my ears.

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

      crap this is exactly what I wanted to do with it

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

    If Pence doesn't think Trump should be indicted Trump might be right about him being delusional.

    • @matthew_berman
      @matthew_berman  Рік тому +12

      Not sure what this has to do with my video...

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

      @@matthew_berman In a LLM it's all connected somehow. But I think I might hove been watching a different video before yours.

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

    ModuleNotFoundError: No module named 'julius' Why???

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

      did you do the pip -r requirements.txt ?

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

      @@jonathaningram8157Yes