You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.6 KiB
Plaintext

{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# acchiappa il dataset WLASL\n",
"\n",
"__data source__:\n",
"\n",
"https://github.com/dxli94/WLASL"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"__scarica e prepara il dataset__ (comandi bash)"
]
},
{
"cell_type": "raw",
"metadata": {},
"source": [
"colemano$ git clone https://github.com/dxli94/WLASL.git ASL_train/WLASL\n",
"\n",
"# installa youtube-dl\n",
"colemano$ sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl\n",
"colemano$ sudo chmod a+rx /usr/local/bin/youtube-dl\n",
"\n",
"# Download video raw, ci mette un botto tipo 1 giorno\n",
"colemano$ cd ASL_train/WLASL/start_kit\n",
"ASL_train/WLASL/start_kit$ python3 video_downloader.py\n",
"\n",
"# Estrai i samples dai video\n",
"ASL_train/WLASL/start_kit$ python3 preprocess.py\n",
"\n",
"# un po di url sono stati spostati dalla pubblicazione, quindi lancia pure per richiederli agli autori,\n",
"# altrimenti sticaz, io l'ho fatto appena rimetto a posto metto tutti i dataset in condivisione.\n",
"# (di 20000 video circa un 1/3 son sparuti)\n",
"ASL_train/WLASL/start_kit$ python find_missing.py\n",
"# volendo si possono richiedere i videii mancanti in missing.txt agli autori"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"__transfer learning e training__ (sempre bash)"
]
},
{
"cell_type": "raw",
"metadata": {},
"source": [
"ASL_train/WLASL/start_kit$ mv videos ../data/WLASL2000/\n",
"\n",
"# per fare transfer-learning automagico scarica weights.zip e archieved.zip, unzippali e mettili in WLASL/code/I3D.\n",
"# kinetics weights---> https://drive.google.com/uc?id=1JgTRHGBRCHyHRT_rAF0fOjnfiFefXkEd&export=download\n",
"# archieve---> https://drive.google.com/uc?id=1jALimVOB69ifYkeT0Pe297S1z4U3jC48&export=download\n",
"# poi,\n",
"\n",
"ASL_train/WLASL/start_kit$ cd ../code/I3D/\n",
"\n",
"# lancia il training, serve la gpu per adesso (12-01-2022)..\n",
"ASL_train/WLASL/code/I3D/$ train_i3d.py"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"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.8.10"
}
},
"nbformat": 4,
"nbformat_minor": 4
}