FrederikRautenberg commited on
Commit
f07fe35
·
1 Parent(s): 934d0f3

debug threads

Browse files
Files changed (2) hide show
  1. app.py +1 -2
  2. pvq_manipulation/models/vits.py +0 -5
app.py CHANGED
@@ -48,8 +48,7 @@ hubert_model = HubertExtractor(
48
  device=device,
49
  # storage_dir= # target storage dir hubert model
50
  )
51
- import os
52
- print("Available threads (CPU cores):", os.cpu_count())
53
 
54
  def get_manipulation(
55
  example,
 
48
  device=device,
49
  # storage_dir= # target storage dir hubert model
50
  )
51
+
 
52
 
53
  def get_manipulation(
54
  example,
pvq_manipulation/models/vits.py CHANGED
@@ -246,9 +246,6 @@ class Vits_NT(Vits):
246
  y_mask=y_mask
247
  )
248
 
249
- print('cuda available: ', torch.cuda.is_available())
250
- import time
251
- start = time.time()
252
  if not torch.cuda.is_available():
253
  num_chunks = min(os.cpu_count() or 2, z.shape[-1])
254
  chunk_size = z.shape[-1] // num_chunks
@@ -271,8 +268,6 @@ class Vits_NT(Vits):
271
  (z * y_mask)[:, :, : self.max_inference_len],
272
  g=speaker_embedding_man[:, :, None] if self.config.gan_speaker_conditioning else None
273
  )
274
- end = time.time()
275
- print(end - start)
276
  return o
277
 
278
  def forward(self, x, x_lengths, y, y_lengths, aux_input, inference=False):
 
246
  y_mask=y_mask
247
  )
248
 
 
 
 
249
  if not torch.cuda.is_available():
250
  num_chunks = min(os.cpu_count() or 2, z.shape[-1])
251
  chunk_size = z.shape[-1] // num_chunks
 
268
  (z * y_mask)[:, :, : self.max_inference_len],
269
  g=speaker_embedding_man[:, :, None] if self.config.gan_speaker_conditioning else None
270
  )
 
 
271
  return o
272
 
273
  def forward(self, x, x_lengths, y, y_lengths, aux_input, inference=False):