Skip to content
Snippets Groups Projects
Commit 904a8146 authored by Stephane Chavin's avatar Stephane Chavin
Browse files

Update get_spectrogram.py

parent 38b3e913
No related branches found
No related tags found
No related merge requests found
...@@ -22,11 +22,13 @@ direction = args.direction ...@@ -22,11 +22,13 @@ direction = args.direction
folder = 'Spectrogram/' folder = 'Spectrogram/'
DURATION = 5 DURATION = 5
OVERLAP = 2 OVERLAP = 2
if args.mode == 'unique': if args.mode == 'multiple':
NB_IMG_PER_REC = 1
else:
NB_IMG_PER_REC = 10 NB_IMG_PER_REC = 10
elif args.mode == 'unique':
NB_IMG_PER_REC = 1
df = pd.read_csv(str(args.file),low_memory=False) df = pd.read_csv(str(args.file),low_memory=False)
df['Path'] = '' df['Path'] = ''
#for w in range (len(df)): #for w in range (len(df)):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment