Closed Usrui closed 1 year ago
In case you are performing zero-shot evaluation, please make sure to add the --zshot tag. In case you are performing fine-tune inference, remove the tag and make sure to use the appropriate configuration file (ex: CLIP-goes-3D/cfgs/ModelNet_models/PointTransformer.yaml)
closing, please feel free to open if further issues are faced
python eval.py --config cfgs/ShapeNet55_models/PointTransformerVPTbak.yaml --exp_name expt --ckpts point_transformer_1k.pth --slip_model models/SLIP/slip_base_100ep.pt ############### error ############## Traceback (most recent call last): File "/home/xxx/CLIP-goes-3D/eval.py", line 399, in
main()
File "/home/xxx/CLIP-goes-3D/eval.py", line 224, in main
cls_acc = validate(base_model,test_dataloader, val_writer, args, config)
File "/home/xxx/CLIP-goes-3D/eval.py", line 382, in validate
pred = logits.argmax(-1).view(-1)
AttributeError: 'tuple' object has no attribute 'argmax'
############### code ################
######################## can I know why this 'pred' are tuple type not the tensor ?