Spaces:
Running
Running
added softmax temperature for better uncertainty calibration
Browse files9 unmodified lines10111213131415169 unmodified linesHF_NAME = "microsoft/swinv2-base-patch4-window16-256"WEIGHTS_PATH = Path(__file__).parent.parent / "model.safetensors"NUM_LABELS = 2SOFTMAX_TEMPERATURE = 1.5SOFTMAX_TEMPERATURE = 2.0
_device = torch.device("cpu")_processor = Noneapp/model.py+1-1