Update README.md
Browse files40 unmodified lines4142434445464740 unmodified linesreturn outputs, logitsmodel = BLIPNet()model.load_state_dict(torch.load("best_model_wts_path"), strict=False)You need to input the sample in the same way as shown in the example provided at: https://huggingface.co/uf-aice-lab/BLIP-MathThen you can get the generated text and classification score simultaneously.40 unmodified lines4142434445464740 unmodified linesreturn outputs, logitsmodel = BLIPNet()model.load_state_dict(torch.load("BLILP_Generation_Classification.bin"), strict=False)You need to input the sample in the same way as shown in the example provided at: https://huggingface.co/uf-aice-lab/BLIP-MathThen you can get the generated text and classification score simultaneously.
README.md+1-1