FrederikRautenberg commited on
Commit
2e528dd
·
1 Parent(s): 3ddd5be

debug threads

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. pvq_manipulation/models/vits.py +1 -0
app.py CHANGED
@@ -48,7 +48,8 @@ hubert_model = HubertExtractor(
48
  device=device,
49
  # storage_dir= # target storage dir hubert model
50
  )
51
-
 
52
 
53
  def get_manipulation(
54
  example,
 
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,
pvq_manipulation/models/vits.py CHANGED
@@ -246,6 +246,7 @@ class Vits_NT(Vits):
246
  y_mask=y_mask
247
  )
248
 
 
249
  if not torch.cuda.is_available():
250
  num_chunks = 2
251
  chunk_size = z.shape[-1] // num_chunks
 
246
  y_mask=y_mask
247
  )
248
 
249
+ print('cuda available: ', torch.cuda.is_available())
250
  if not torch.cuda.is_available():
251
  num_chunks = 2
252
  chunk_size = z.shape[-1] // num_chunks