VinAIResearch / Anti-DreamBooth

Anti-DreamBooth: Protecting users from personalized text-to-image synthesis (ICCV 2023)
https://vinairesearch.github.io/Anti-DreamBooth/
GNU Affero General Public License v3.0
206 stars 17 forks source link

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

Open ChelsyHu opened 5 months ago

ChelsyHu commented 5 months ago

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 commented 1 month ago

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