Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with wanb: api_key not configured #112

Open
dung2603 opened this issue Apr 20, 2024 · 4 comments
Open

problem with wanb: api_key not configured #112

dung2603 opened this issue Apr 20, 2024 · 4 comments

Comments

@dung2603
Copy link

wandb: ERROR api_key not configured (no-tty). call wandb.login(key=[your_api_key])
Traceback (most recent call last):
File "/content/ZoeDepth/train_mono.py", line 169, in
mp.spawn(main_worker, nprocs=ngpus_per_node,
File "/usr/local/lib/python3.10/dist-packages/torch/multiprocessing/spawn.py", line 240, in spawn
return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
File "/usr/local/lib/python3.10/dist-packages/torch/multiprocessing/spawn.py", line 198, in start_processes
while not context.join():
File "/usr/local/lib/python3.10/dist-packages/torch/multiprocessing/spawn.py", line 160, in join
raise ProcessRaisedException(msg, error_index, failed_process.pid)
torch.multiprocessing.spawn.ProcessRaisedException:

-- Process 0 terminated with the following error:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/torch/multiprocessing/spawn.py", line 69, in _wrap
fn(i, *args)
File "/content/ZoeDepth/train_mono.py", line 104, in main_worker
trainer.train()
File "/content/ZoeDepth/zoedepth/trainers/base_trainer.py", line 155, in train
wandb.init(project=self.config.project, name=self.config.experiment_id, config=flatten(self.config), dir=self.config.root,
File "/usr/local/lib/python3.10/dist-packages/wandb/sdk/wandb_init.py", line 1105, in init
wi.setup(kwargs)
File "/usr/local/lib/python3.10/dist-packages/wandb/sdk/wandb_init.py", line 276, in setup
wandb_login._login(
File "/usr/local/lib/python3.10/dist-packages/wandb/sdk/wandb_login.py", line 298, in _login
wlogin.prompt_api_key()
File "/usr/local/lib/python3.10/dist-packages/wandb/sdk/wandb_login.py", line 228, in prompt_api_key
raise UsageError("api_key not configured (no-tty). call " + directive)
wandb.errors.UsageError: api_key not configured (no-tty). call wandb.login(key=[your_api_key])

@YacineDeghaies
Copy link

Did you fix this ?

@dung2603
Copy link
Author

dung2603 commented Jul 1, 2024

Did you fix this ?

I fixed it

@YacineDeghaies
Copy link

I fixed it

How ?

@dung2603
Copy link
Author

dung2603 commented Aug 5, 2024

I fixed it

How ?

Access wandb.ai then read introduction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants