Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liamhazan committed Aug 15, 2024
1 parent 342bc77 commit dab7ae2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
def main(cfg: DictConfig) -> None:
cfg = hydra.utils.instantiate(cfg)
results_path = cfg.results_dir
os.environ["CUDA_VISIBLE_DEVICES"] = ",".join(cfg.cuda_devices)
os.environ["CUDA_VISIBLE_DEVICES"] = ",".join([str(x) for x in cfg.cuda_devices])

assert (
sum(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
def main(cfg: DictConfig) -> None:
cfg = hydra.utils.instantiate(cfg)
results_path = cfg.results_dir
os.environ["CUDA_VISIBLE_DEVICES"] = ",".join(cfg.cuda_devices)
os.environ["CUDA_VISIBLE_DEVICES"] = ",".join([str(x) for x in cfg.cuda_devices])

assert (
sum(
Expand Down
2 changes: 1 addition & 1 deletion fuse_examples/imaging/oai_example/self_supervised/dino.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def configure_optimizers(self) -> tuple:
@hydra.main(version_base="1.2", config_path=".", config_name="dino")
def main(cfg: DictConfig) -> None:
cfg = hydra.utils.instantiate(cfg)
os.environ["CUDA_VISIBLE_DEVICES"] = ",".join(cfg.cuda_devices)
os.environ["CUDA_VISIBLE_DEVICES"] = ",".join([str(x) for x in cfg.cuda_devices])

assert (
sum(
Expand Down

0 comments on commit dab7ae2

Please sign in to comment.