Spaces:
Runtime error
Runtime error
use hf hub download
Browse files9 unmodified lines101112131415121 unmodified lines1371381391401411421439 unmodified linesfrom torchvision.transforms import transformsfrom torchvision.transforms import InterpolationModeimport torchvision.transforms.functional as TFtorch.set_grad_enabled(False)121 unmodified linesmodel.head = GatedHead(min(model.head.weight.shape), 9083)safetensors.torch.load_model(model, "JTP_PILOT2-2-e3-vit_so400m_patch14_siglip_384.safetensors")model.eval()with open("tagger_tags.json", "r") as file:9 unmodified lines10111213141516121 unmodified lines1381391401411421431441451469 unmodified linesfrom torchvision.transforms import transformsfrom torchvision.transforms import InterpolationModeimport torchvision.transforms.functional as TFfrom huggingface_hub import hf_hub_downloadtorch.set_grad_enabled(False)121 unmodified linesmodel.head = GatedHead(min(model.head.weight.shape), 9083)hf_hub_download(repo_id="RedRocket/JointTaggerProject", subfolder="JTP_PILOT2", filename="JTP_PILOT2-e3-vit_so400m_patch14_siglip_384.safetensors")safetensors.torch.load_model(model, "JTP_PILOT2-e3-vit_so400m_patch14_siglip_384.safetensors")model.eval()with open("tagger_tags.json", "r") as file:
app.py+4-1