Skip to content
This repository was archived by the owner on Nov 23, 2023. It is now read-only.

Commit 756717f

Browse files
fix printing, gpu order
1 parent 404f1cf commit 756717f

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

notochord/notochord/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def _remap_anonymous_instruments(self, program: torch.Tensor) -> torch.Tensor:
5555
new_program = program.clone()
5656

5757
if len(anon_melodic)>self.n_anon:
58-
print(f'warning: {anon_melodic} > {self.n_anon} anon melodic instruments')
58+
print(f'warning: {len(anon_melodic)} > {self.n_anon} anon melodic instruments')
5959
if len(anon_drum)>self.n_anon:
60-
print(f'warning: {anon_drum} > {self.n_anon} anon drum instruments')
60+
print(f'warning: {len(anon_drum)} > {self.n_anon} anon drum instruments')
6161

6262
i = 0
6363
for pr in anon_melodic:

notochord/notochord/train.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import os
2+
# fix torch device order to be same as nvidia-smi order
3+
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
4+
15
from pathlib import Path
26
import random
37
from collections import defaultdict

0 commit comments

Comments
 (0)