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

ValueError: value should be one of int, float, str, bool, or torch.Tensor #22

Open
ChelsyHu opened this issue May 30, 2024 · 1 comment

Comments

@ChelsyHu
Copy link

Help! a mistake occurs to my program.
I have tried to pip install pytorch.lightning==0.7.3 as other people said online, but it still can't work.
What can I do? The bug information is as below. I will thank you very much as someone can help me.

Traceback (most recent call last):
File "/ssd-sata1/hqq/Anti-DreamBooth/train_dreambooth.py", line 1012, in
main(args)
File "/ssd-sata1/hqq/Anti-DreamBooth/train_dreambooth.py", line 852, in main
accelerator.init_trackers("dreambooth", config=vars(args))
File "/ssd-sata1/hqq/anaconda3/envs/anti-dreambooth/lib/python3.9/site-packages/accelerate/accelerator.py", line 495, in wrapper
return func(self, *args, **kwargs)
File "/ssd-sata1/hqq/anaconda3/envs/anti-dreambooth/lib/python3.9/site-packages/accelerate/accelerator.py", line 1795, in init_trackers
tracker.store_init_configuration(config)
File "/ssd-sata1/hqq/anaconda3/envs/anti-dreambooth/lib/python3.9/site-packages/accelerate/tracking.py", line 176, in store_init_configuration
self.writer.add_hparams(values, metric_dict={})
File "/ssd-sata1/hqq/anaconda3/envs/anti-dreambooth/lib/python3.9/site-packages/torch/utils/tensorboard/writer.py", line 336, in add_hparams
exp, ssi, sei = hparams(hparam_dict, metric_dict, hparam_domain_discrete)
File "/ssd-sata1/hqq/anaconda3/envs/anti-dreambooth/lib/python3.9/site-packages/torch/utils/tensorboard/summary.py", line 231, in hparams
raise ValueError(
ValueError: value should be one of int, float, str, bool, or torch.Tensor

@Karina-ww
Copy link

pip uninstall tensorboard 意外解决了我这个报错问题

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