mirror of
https://github.com/dscripka/openWakeWord.git
synced 2026-08-27 18:17:20 -04:00
fix flake8 issue
This commit is contained in:
parent
db418ab9f3
commit
e3f1046ebb
1 changed files with 2 additions and 2 deletions
|
|
@ -269,7 +269,7 @@ class AudioFeatures():
|
|||
result = self._get_melspectrogram(batch)
|
||||
|
||||
elif pool:
|
||||
chunksize = batch.shape[0]//ncpu if batch.shape[0]>=ncpu else 1
|
||||
chunksize = batch.shape[0]//ncpu if batch.shape[0] >= ncpu else 1
|
||||
result = np.array(pool.map(self._get_melspectrogram,
|
||||
batch, chunksize=chunksize))
|
||||
|
||||
|
|
@ -331,7 +331,7 @@ class AudioFeatures():
|
|||
result = self.embedding_model_predict(batch)
|
||||
|
||||
elif pool:
|
||||
chunksize = batch.shape[0]//ncpu if batch.shape[0]>=ncpu else 1
|
||||
chunksize = batch.shape[0]//ncpu if batch.shape[0] >= ncpu else 1
|
||||
result = np.array(pool.map(self._get_embeddings_from_melspec,
|
||||
batch, chunksize=chunksize))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue