Skip to content

Instantly share code, notes, and snippets.

View nicolapiccinelli's full-sized avatar

Nicola Piccinelli nicolapiccinelli

  • University Of Verona
  • Brescia
View GitHub Profile
@nicolapiccinelli
nicolapiccinelli / imagenet1000_clsidx_to_labels_ita.txt
Created October 31, 2019 10:38
ImageNet classes indices (ITA version)
{0: 'tinca, tinca tinca',
1: "pesce rosso, Carassius auratus",
2: "grande squalo bianco, squalo bianco, mangiatore di uomini, squalo mangiatore di uomini, Carcharodon carcharias",
3: 'squalo tigre, Galeocerdo cuvieri',
4: "martello, squalo martello",
5: "raggio elettrico, crampi, numbfish, siluri",
6: "pastinaca",
7: 'gallo',
8: "gallina",
9: 'struzzo, Struthio camelus',
@nicolapiccinelli
nicolapiccinelli / video_chunck.sh
Created September 30, 2019 12:04
Split video into chunks using ffmpeg
#!/bin/bash
# $1 the filename to be chucked
# $2 should contains how frequently the video must be chuncked (00:00:00, hh/mm/ss)
ffmpeg -i $1 -c copy -map 0 -segment_time $2 -reset_timestamps 1 -f segment output%03d.mp4