Closed saifhassan closed 1 year ago
@saifhassan please don't tag everyone when posting new issues. The main contributors are myself and @DonkeyShot21 and we always try to address issues as soon as possible. Which files do you have inside this folder? main_umap.py
expects a folder in the same structure as the checkpoints that we save during training, so a checkpoint file and an args file. It looks like you have more than one checkpoint file.
@saifhassan please don't tag everyone when posting new issues. The main contributors are myself and @DonkeyShot21 and we always try to address issues as soon as possible. Which files do you have inside this folder?
main_umap.py
expects a folder in the same structure as the checkpoints that we save during training, so a checkpoint file and an args file. It looks like you have more than one checkpoint file.
sorry for tagging everyone, updated tagged persons. Yeah, I got it regarding umap. I will let you know if any more queries.
Thanks
@saifhassan please don't tag everyone when posting new issues. The main contributors are myself and @DonkeyShot21 and we always try to address issues as soon as possible. Which files do you have inside this folder?
main_umap.py
expects a folder in the same structure as the checkpoints that we save during training, so a checkpoint file and an args file. It looks like you have more than one checkpoint file.
I am running umap.sh
file which contains command as follows:
python3 main_umap.py \
--dataset custom \
--train_data_path ./datasets/raf-db/train \
--val_data_path ./datasets/raf-db/val \
--batch_size 16 \
--num_workers 10 \
--pretrained_checkpoint_dir ./trained_models/byol/zu2661zo
and ./trained_models/byol/zu2661zo
directory contains .json
and .ckpt
files. that's all.
Still same error.
How many files do you have in that folder?
How many files do you have in that folder?
just two files one .json
and one .ckpt
only the files generated by main_pretrain.py
(one ckpt and one json).
I am trying to use KNN evaluation, and the exact same error shows up. In my case, I also only have a folder containing just a checkpoint file and an args.json file.
Exactly the same issue. Tried to debug, but I am somewhat stuck why this would suddenly appear.
Seems like in the saving.py
(lines 177ff) provided by pytorch_lightning one can circumvent the issue as:
if issubclass(cls, pl.LightningDataModule):
return _load_state(cls, checkpoint, **kwargs)
if issubclass(cls, pl.LightningModule):
kwargs.pop('checkpoint')
return _load_state(cls, checkpoint, strict=strict, **kwargs)
raise NotImplementedError(f"Unsupported {cls}")
the kwargs.pop('checkpoint')
partially solves my problem. Though I find it weird that this is suddenly an issue.
I'll take a look at it in the next few days. Thanks for reporting.
Hey @vturrisi @DonkeyShot21
Thank you for nice work.
While running
main_umap.py
with pretrained model using BYOL method, it gives following error:Command
Error
Please guide.