Skip to content

Commit 4ca5403

Browse files
committed
support caption model
1 parent c4eaa98 commit 4ca5403

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

llama_adapter_v2_multimodal/demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
llama_dir = "/path/to/LLaMA/"
99

10-
# choose from BIAS-7B, LORA-BIAS-7B
10+
# choose from BIAS-7B, LORA-BIAS-7B, CAPTION-7B.pth
1111
model, preprocess = llama.load("BIAS-7B", llama_dir, device)
1212
model.eval()
1313

llama_adapter_v2_multimodal/llama/llama_adapter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ def generate(
278278
_MODELS = {
279279
"BIAS-7B": "https://github.com/OpenGVLab/LLaMA-Adapter/releases/download/v.2.0.0/7fa55208379faf2dd862565284101b0e4a2a72114d6490a95e432cf9d9b6c813_BIAS-7B.pth",
280280
"LORA-BIAS-7B": "https://github.com/OpenGVLab/LLaMA-Adapter/releases/download/v.2.0.0/1bcbffc43484332672092e0024a8699a6eb5f558161aebf98a7c6b1db67224d1_LORA-BIAS-7B.pth",
281+
"CAPTION-7B": "https://github.com/OpenGVLab/LLaMA-Adapter/releases/download/v.2.0.0/5088aeb63a89746b90bcfd5cb819e1c7411b2771b267c6d131ce73e250a8abf0_CAPTION-7B.pth",
281282
# "LORA16-7B": "",
282283
# "PARTIAL-7B": ""
283284
}

0 commit comments

Comments
 (0)