You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to load a pretrained model X-152++ and calculate its grid-features. I put the pretrained model X-152pp.pth in xyz directory. How should I load it to calculate its features as I am not loading model from output directory.
How do I need to change this command line python extract_grid_feature.py -config-file configs/X-152-grid.yaml --dataset
Also, when I write CUDA_VISIBLE_DEVICES=0 python3.6 extract_grid_feature.py --config-file configs/X-152-grid.yaml --dataset coco_2015_test OUTPUT_DIR xyz
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to load a pretrained model X-152++ and calculate its grid-features. I put the pretrained model X-152pp.pth in xyz directory. How should I load it to calculate its features as I am not loading model from output directory.
How do I need to change this command line
python extract_grid_feature.py -config-file configs/X-152-grid.yaml --dataset
Also, when I write
CUDA_VISIBLE_DEVICES=0 python3.6 extract_grid_feature.py --config-file configs/X-152-grid.yaml --dataset coco_2015_test OUTPUT_DIR xyz
it downloads
[03/20 20:14:59 d2.checkpoint.catalog]: Catalog entry catalog://ImageNetPretrained/FAIR/X-152-32x8d-IN5k points to https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/25093814/X-152-32x8d-IN5k.pkl
and later loads the model like this and starts calculating features for the dataset
[03/20 20:01:31 detectron2]: Full config saved to xyz/config.yaml
[03/20 20:01:31 d2.utils.env]: Using a generated random seed 31780998
[03/20 20:01:36 fvcore.common.checkpoint]: Loading checkpoint from catalog://ImageNetPretrained/FAIR/X-152-32x8d-IN5k
[03/20 20:01:36 d2.checkpoint.catalog]: Catalog entry catalog://ImageNetPretrained/FAIR/X-152-32x8d-IN5k points to https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/25093814/X-152-32x8d-IN5k.pkl
[03/20 20:01:36 fvcore.common.file_io]: URL https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/25093814/X-152-32x8d-IN5k.pkl cached in /home/ifrahmaqsood/.torch/fvcore_cache/detectron/ImageNetPretrained/25093814/X-152-32x8d-IN5k.pkl
It doesn't take the model that is saved under xyz folder
could you help me, how can I overcome this problem
Beta Was this translation helpful? Give feedback.
All reactions