-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19422b2
commit 08ae34d
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"cells":[{"cell_type":"markdown","metadata":{"id":"Ne7Cqu0cs6rp"},"source":["## 🎵 KaraFan\n","\n","The **BEST music separation** software with help of A.I. ... **to my ears** ! 👂👂\n","\n","#### 📝 The Story of this project, Explanations, and Thanks are on my [![GitHub](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&labelColor=333&logoColor=white&color=ff0080)](https://github.com/Captain-FLAM/KaraFan) page.\n","\n","**R.T.F.RM** --> Read [The Fucking READ ME](https://github.com/Captain-FLAM/KaraFan#readme) - (GitHub home page), it's worth it ! 😁 \n","**R.T.F.W** --> Read [The Fucking WIKI](https://github.com/Captain-FLAM/KaraFan/wiki) (**updated continuously**)\n","\n","### 💲 And if you like this software :\n","\n","[![ko-fi](images/ko-fi.png)](https://ko-fi.com/captain_flam)\n","\n","### 📜 LICENSE - © Captain FLAM & Jarredou - 2023 - M.I.T license\n","\n","That means if you want to use any part of our code in your projects, **YOU HAVE TO let the copyrights in place !!** \n","Copyright is not a shame, it's a way to say thanks to the authors for their work !\n","\n","### ⏹️ If you want to stop the processing **use : <kbd>CTRL</kbd> + <kbd>C</kbd>**"]},{"cell_type":"code","execution_count":null,"metadata":{"id":"eq_TF8D5sEgU"},"outputs":[],"source":["import os, sys, subprocess\n","\n","# !!!! If you are a developer !!!!\n","#\n","# If you want to work on KaraFan on your PC or on your Google Drive (with Google Colab),\n","# this option Deactivate the \"Automagic Updates\", and so don't overwrite your modifications.\n","# Moreover, on Colab, it will install the code in \"/KaraFan\" on your Google Drive. \n","\n","I_AM_A_DEVELOPER = False\n","\n","# If you still have GPU memory errors, you can try to\n","# uncomment the following line, but I'm not sure it will work...\n","# Anyway, following the Nvidia documentation,\n","# they recommend to set this environment variable to 512 MB :\n","\n","# os.environ['PYTORCH_CUDA_ALLOC_CONF'] = \"max_split_size_mb:512\"\n","\n","#****************************************************************\n","\n","Repo_url = \"https://github.com/Captain-FLAM/KaraFan\"\n","\n","Gdrive = \"\"; Project = \"\"; User = \"\"; isColab = False\n","try:\n","\t# Are we on Google Colab ?\n","\tfrom google.colab import drive\n","\tisColab = True\n","\tdrive.mount(\"/content/Gdrive\", timeout_ms=60000) # 60 seconds\n","\tGdrive = \"/content/Gdrive/MyDrive\"\n","\tProject = os.path.join(Gdrive if I_AM_A_DEVELOPER else \"/content\", \"KaraFan\")\n","except:\n","\tif not isColab:\n","\t\t# We are on PC\n","\t\tProject = os.getcwd() # Get the current path\n","\t\tGdrive = os.path.dirname(Project) # Get parent directory\n","\n","if Gdrive != \"\":\n","\tif not os.path.exists(Project):\n","\t\tprint('Cloning \"KaraFan\" Repository...')\n","\t\tos.chdir(os.path.dirname(Project))\n","\t\ttry:\n","\t\t\tsubprocess.run([\"git\", \"clone\", f\"{Repo_url}.git\", \"KaraFan\"], text=True, capture_output=True, check=True)\n","\t\texcept subprocess.CalledProcessError as e:\n","\t\t\tprint(\"Error during Cloning :\\n\" + e.stderr + \"\\n\" + e.stdout + \"\\n\")\n","\t\t\texit(1)\n","\n","\tif os.path.exists(Project):\n","\t\t# Mandatory to import App modules\n","\t\tsys.path.insert(0, Project)\n","\t\timport App.setup\n","\n","\t\tparams = {\"Gdrive\": Gdrive, \"Project\": Project, \"isColab\": isColab, \"I_AM_A_DEVELOPER\": I_AM_A_DEVELOPER}\n","\telse:\n","\t\tprint('\"KaraFan\" is NOT installed !'); exit(1)"]},{"cell_type":"markdown","metadata":{},"source":["## 😎 This is it !"]},{"cell_type":"code","execution_count":null,"metadata":{},"outputs":[],"source":["if Gdrive != \"\": App.setup.Install(params); import Gui.Notebook; Gui.Notebook.Run(params)\n","else: print(\"\\n**** You have denied access to your Drive ! ****\\n\") "]}],"metadata":{"accelerator":"GPU","colab":{"collapsed_sections":["Ne7Cqu0cs6rp"],"gpuType":"T4","private_outputs":true,"provenance":[]},"kernelspec":{"display_name":"Python 3","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.6"}},"nbformat":4,"nbformat_minor":0} | ||
{"cells":[{"cell_type":"markdown","metadata":{"id":"Ne7Cqu0cs6rp"},"source":["## 🎵 KaraFan\n","\n","The **BEST music separation** software with help of A.I. ... **to my ears** ! 👂👂\n","\n","#### 📝 The Story of this project, Explanations, and Thanks are on my [![GitHub](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&labelColor=333&logoColor=white&color=ff0080)](https://github.com/Captain-FLAM/KaraFan) page.\n","\n","**R.T.F.RM** --> Read [The Fucking READ ME](https://github.com/Captain-FLAM/KaraFan#readme) - (GitHub home page), it's worth it ! 😁 \n","**R.T.F.W** --> Read [The Fucking WIKI](https://github.com/Captain-FLAM/KaraFan/wiki) (**updated continuously**)\n","\n","### 💲 And if you like this software :\n","\n","[![ko-fi](images/ko-fi.png)](https://ko-fi.com/captain_flam)\n","\n","### 📜 LICENSE - © Captain FLAM & Jarredou - 2023 - M.I.T license\n","\n","That means if you want to use any part of our code in your projects, **YOU HAVE TO let the copyrights in place !!** \n","Copyright is not a shame, it's a way to say thanks to the authors for their work !\n","\n","### ⏹️ If you want to stop the processing **use : <kbd>CTRL</kbd> + <kbd>C</kbd>**"]},{"cell_type":"code","execution_count":null,"metadata":{"id":"eq_TF8D5sEgU"},"outputs":[],"source":["import os, sys, subprocess\n","\n","# !!!! If you are a developer !!!!\n","#\n","# If you want to work on KaraFan on your PC or on your Google Drive (with Google Colab),\n","# this option Deactivate the \"Automagic Updates\", and so don't overwrite your modifications.\n","# Moreover, on Colab, it will install the code in \"/KaraFan\" on your Google Drive. \n","\n","I_AM_A_DEVELOPER = False\n","\n","# If you still have GPU memory errors, you can try to\n","# uncomment the following line, but I'm not sure it will work...\n","# Anyway, following the Nvidia documentation,\n","# they recommend to set this environment variable to 512 MB :\n","\n","# os.environ['PYTORCH_CUDA_ALLOC_CONF'] = \"max_split_size_mb:512\"\n","\n","#****************************************************************\n","\n","Repo_url = \"https://github.com/Captain-FLAM/KaraFan\"\n","\n","Gdrive = \"\"; Project = \"\"; User = \"\"; isColab = False\n","try:\n","\t# Are we on Google Colab ?\n","\tfrom google.colab import drive\n","\tisColab = True\n","\tdrive.mount(\"/content/Gdrive\", timeout_ms=60000) # 60 seconds\n","\tGdrive = \"/content/Gdrive/MyDrive\"\n","\tProject = os.path.join(Gdrive if I_AM_A_DEVELOPER else \"/content\", \"KaraFan\")\n","except:\n","\tif not isColab:\n","\t\t# We are on PC\n","\t\tProject = os.getcwd() # Get the current path\n","\t\tGdrive = os.path.dirname(Project) # Get parent directory\n","\n","if Gdrive != \"\":\n","\tif not os.path.exists(Project):\n","\t\tprint('Cloning \"KaraFan\" Repository...')\n","\t\tos.chdir(os.path.dirname(Project))\n","\t\ttry:\n","\t\t\tsubprocess.run([\"git\", \"clone\", f\"{Repo_url}.git\", \"KaraFan\"], text=True, capture_output=True, check=True)\n","\t\texcept subprocess.CalledProcessError as e:\n","\t\t\tprint(\"Error during Cloning :\\n\" + e.stderr + \"\\n\" + e.stdout + \"\\n\")\n","\t\t\texit(1)\n","\n","\tif os.path.exists(Project):\n","\t\t# Mandatory to import App modules\n","\t\tsys.path.insert(0, Project)\n","\t\timport App.setup\n","\n","\t\tparams = {\"Gdrive\": Gdrive, \"Project\": Project, \"isColab\": isColab, \"I_AM_A_DEVELOPER\": I_AM_A_DEVELOPER}\n","\telse:\n","\t\tprint('\"KaraFan\" is NOT installed !'); exit(1)"]},{"cell_type":"markdown","metadata":{},"source":["## 😎 This is it !"]},{"cell_type":"code","execution_count":null,"metadata":{},"outputs":[],"source":["if Gdrive != \"\": App.setup.Install(params); import Gui.Notebook; Gui.Notebook.Run(params)\n","else: print(\"\\n**** You have denied access to your Drive ! ****\\n\")"]}],"metadata":{"accelerator":"GPU","colab":{"collapsed_sections":["Ne7Cqu0cs6rp"],"gpuType":"T4","private_outputs":true,"provenance":[]},"kernelspec":{"display_name":"Python 3","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.6"}},"nbformat":4,"nbformat_minor":0} |