Merge pull request #25 from shahules786/dev

dev install
This commit is contained in:
Shahul ES 2022-11-21 22:04:25 +05:30 committed by GitHub
commit f94bd22eb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 45 deletions

View File

@ -30,17 +30,6 @@
"! pip install -q mayavoz "
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "e3b59ac5",
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"os.chdir(\"/Users/shahules/Myprojects/enhancer\")"
]
},
{
"cell_type": "markdown",
"id": "87ee497f",
@ -73,22 +62,13 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"id": "67698871",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/opt/anaconda3/envs/enhancer/lib/python3.8/site-packages/tqdm/auto.py:22: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
" from .autonotebook import tqdm as notebook_tqdm\n"
]
}
],
"outputs": [],
"source": [
"\n",
"from mayavoz import Mayamodel\n",
"from mayavoz.models import Mayamodel\n",
"model = Mayamodel.from_pretrained(\"shahules786/mayavoz-dccrn-valentini-28spk\")\n"
]
},
@ -102,7 +82,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 7,
"id": "d7996c16",
"metadata": {},
"outputs": [
@ -112,7 +92,7 @@
"torch.Size([1, 1, 36414])"
]
},
"execution_count": 4,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
@ -132,7 +112,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 8,
"id": "e1a1c718",
"metadata": {},
"outputs": [
@ -142,7 +122,7 @@
"(36414,)"
]
},
"execution_count": 20,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
@ -156,8 +136,8 @@
},
{
"cell_type": "code",
"execution_count": 21,
"id": "56b5c01b",
"execution_count": 9,
"id": "0cbef6c0",
"metadata": {},
"outputs": [
{
@ -166,7 +146,7 @@
"(1, 1, 36414)"
]
},
"execution_count": 21,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
@ -178,7 +158,7 @@
},
{
"cell_type": "markdown",
"id": "e0ab4d43",
"id": "a22fc10f",
"metadata": {},
"source": [
"**Inference using torch tensor**\n"
@ -186,8 +166,8 @@
},
{
"cell_type": "code",
"execution_count": 22,
"id": "fc6192b9",
"execution_count": 10,
"id": "a884a935",
"metadata": {},
"outputs": [
{
@ -196,7 +176,7 @@
"torch.Size([1, 1, 36414])"
]
},
"execution_count": 22,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
@ -217,7 +197,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 11,
"id": "9e0313f7",
"metadata": {},
"outputs": [],
@ -227,7 +207,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 12,
"id": "25077720",
"metadata": {},
"outputs": [
@ -245,7 +225,7 @@
"<IPython.lib.display.Audio object>"
]
},
"execution_count": 14,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
@ -534,7 +514,7 @@
},
{
"cell_type": "markdown",
"id": "6558a563",
"id": "15737128",
"metadata": {},
"source": [
"For example, if you want to add/change `stride` of dataset\n",
@ -553,7 +533,7 @@
"id": "eb26692c",
"metadata": {},
"source": [
"Hydra-based configuration\n",
"#### Hydra-based configuration\n",
"mayavoz-train relies on Hydra to configure the training process. Adding --cfg job option to the previous command will let you know about the actual configuration used for training:\n",
"\n",
"```bash\n",
@ -586,12 +566,6 @@
"\n",
"```"
]
},
{
"cell_type": "markdown",
"id": "93555860",
"metadata": {},
"source": []
}
],
"metadata": {