nasimjamshidi / LAR-IQA

42 stars 3 forks source link

KeyError: 'learning_rate' #7

Open GZHU-DVL opened 2 days ago

GZHU-DVL commented 2 days ago

ubuntu:/data1/fengchuang/LAR-IQA-main$ python scripts/main.py --csv_files /data1/fengchuang/LAR-IQA-main/dataset/training.csv --root_dirs /data1/fengchuang/UHD-IQA-database/UHD --val_csv_file /data1/fengchuang/LAR-IQA-main/dataset/validation.csv --val_root_dir /data1/fengchuang/UHD-IQA-database/UHD --output_path /data1/fengchuang/UHD-IQA-database/ --batch_size 8 --use_kan
wandb: Using wandb-core as the SDK backend. Please refer to https://wandb.me/wandb-core for more information. wandb: Currently logged in as: fengchuang (dvl536). Use wandb login --relogin to force relogin wandb: Tracking run with wandb version 0.18.6 wandb: Run data is saved locally in /data1/fengchuang/LAR-IQA-main/wandb/run-20241112_061206-1kxsvr2l wandb: Run wandb offline to turn off syncing. wandb: Syncing run prime-shape-5 wandb: ?? View project at https://wandb.ai/dvl536/my_project wandb: ?? View run at https://wandb.ai/dvl536/my_project/runs/1kxsvr2l Traceback (most recent call last): File "/data1/fengchuang/anaconda3/envs/kann/lib/python3.9/site-packages/wandb/sdk/wandb_config.py", line 165, in getattr return self.getitem(key) File "/data1/fengchuang/anaconda3/envs/kann/lib/python3.9/site-packages/wandb/sdk/wandb_config.py", line 130, in getitem return self._items[key] KeyError: 'learning_rate'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/data1/fengchuang/LAR-IQA-main/scripts/../utils/train.py", line 142, in train optimizer, scheduler = build_optimizer_and_scheduler(model, config, {"train_loader": train_loader}) File "/data1/fengchuang/LAR-IQA-main/scripts/../utils/train.py", line 44, in build_optimizer_and_scheduler lr= config.learning_rate, File "/data1/fengchuang/anaconda3/envs/kann/lib/python3.9/site-packages/wandb/sdk/wandb_config.py", line 167, in getattr raise AttributeError( AttributeError: <class 'wandb.sdk.wandb_config.Config'> object has no attribute 'learning_rate'

When I use the following command: python scripts/main.py --csv_files /data1/fengchuang/LAR-IQA-main/dataset/training.csv --root_dirs /data1/fengchuang/UHD-IQA-database/UHD --val_csv_file /data1/fengchuang/LAR-IQA-main/dataset/validation.csv --val_root_dir /data1/fengchuang/UHD-IQA-database/UHD --output_path /data1/fengchuang/UHD-IQA-database/ --batch_size 8, an error occurs. How can I resolve this issue?

nasimjamshidi commented 2 days ago

@GZHU-DVL, Thank you for your question. I’ll go through the code to find a solution to your issue. I’m a bit busy for the next two days, but I’ll get back to you afterward.

GZHU-DVL commented 2 days ago

Ok, waiting for U