Open AIHECKER opened 6 months ago
Hi, can you also post the command (with argument) and model you are trying to run? I was getting this error but was able to resolve it but I don't remember exactly when I was getting it.
Hi, can you also post the command (with argument) and model you are trying to run? I was getting this error but was able to resolve it but I don't remember exactly when I was getting it.
Thanks for replying. I was running the main_pretrain.py using this command: python3 main_pretrain.py --data_dir datasets/clean_10k_geography/ --base_encoder resnet18 --batch_size 256 --data_mode caco --max_epochs 1000 --schedule 600 800 -d gereric_description --online_data_dir datasets/clean_10k_geography/
I added the new argument --online data_dir which you didn't put it on in your original command because the program couldn't go on without this.
And the complete error message wrote like this:
(cacoenv) u2021213473@n1:~/jupyterlab/seasonal-contrast-main$ python3 main_pretrain.py --data_dir datasets/clean_10k_geography/ --base_encoder resnet18 --batch_size 256 --data_mode caco --max_epochs 1000 --schedule 600 800 -d gereric_description --online_data_dir datasets/clean_10k_geography/
{'min_q': {'B2': 3.0, 'B3': 2.0, 'B4': 0.0}, 'max_q': {'B2': 88.0, 'B3': 103.0, 'B4': 129.0}}
Traceback (most recent call last):
File "/home/u2021213473/jupyterlab/seasonal-contrast-main/main_pretrain.py", line 89, in
Sorry, dropped the ball on this one. Were you able to figure it out? I think the --online_data_dir is the culprit as the lmdb version of data is needed for that.
Sorry, dropped the ball on this one. Were you able to figure it out? I think the --online_data_dir is the culprit as the lmdb version of data is needed for that.
Thanks for the heads-up. I took a look at the models/ssl_online.py file and noticed that a return statement is executed right before the self.datamodule section. This is a change from the original SECO code. (You must have figured this out.) So, problem solved!
I got the same problem in Seco's source code. I thought the author probably sovled this, so I'm here asking for help!