You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't understand why this procedure can't process those files and constantly throw that error:
Cannot convert file /srv/nfs/kubedata/cas-landingzone/sbxtot/sounds/train/abnormal/00000110.wav
Number of files processed: 0
File conversions are finished.
ERROR: A PATH type caslib is required when using filetype DOCUMENT.
ERROR: The action stopped due to errors.
ERROR: A PATH type caslib is required when using filetype DOCUMENT.
ERROR: The action stopped due to errors.
While in the meantime, the following procedure works and create my table but it includes all the subdirectories of sounds (test, train, validate) content in one file
modelPath = '/srv/nfs/kubedata/cas-landingzone/sbxtot/sounds'
s.addcaslib(activeonadd=True,datasource={'srctype':'path'},name='mycaslib',path=modelPath,subdirectories=True)
s.setsessopt(caslib='mycaslib')
local_data_test = '/srv/nfs/kubedata/cas-landingzone/sbxtot/sounds/test'
server_data_test = '/srv/nfs/kubedata/cas-landingzone/sbxtot/sounds/test'
local_data_train = '/srv/nfs/kubedata/cas-landingzone/sbxtot/sounds/train'
server_data_train = '/srv/nfs/kubedata/cas-landingzone/sbxtot/sounds/train'
local_data_validate = '/srv/nfs/kubedata/compute-landingzone/sbxtot/sounds/validate'
server_data_validate = 'srv/nfs/kubedata/compute-landingzone/sbxtot/sounds/validate'
audio_table_train = AudioTable.load_audio_files(s,
casout={'name':'audio_files_train','replace':'True'},
local_audio_path=local_data_train,
server_audio_path=server_playground_data)
I can't understand why this procedure can't process those files and constantly throw that error:
Cannot convert file /srv/nfs/kubedata/cas-landingzone/sbxtot/sounds/train/abnormal/00000110.wav
Number of files processed: 0
File conversions are finished.
ERROR: A PATH type caslib is required when using filetype DOCUMENT.
ERROR: The action stopped due to errors.
ERROR: A PATH type caslib is required when using filetype DOCUMENT.
ERROR: The action stopped due to errors.
While in the meantime, the following procedure works and create my table but it includes all the subdirectories of sounds (test, train, validate) content in one file
rt2 = s.retrieve('table.loadtable', _messagelevel='error', casout= {'name':'audio_files_train','replace':'True'},
caslib='mycaslib', path='',
importOptions=dict(fileType='AUDIO', contents=True, recurse=True))
Can you let me know how to solve this issue ?
Thanks,
Tom.
The text was updated successfully, but these errors were encountered: