diff options
author | Shangning Xu <32517059+xushangning@users.noreply.github.com> | 2023-07-15 02:40:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-14 21:40:05 +0300 |
commit | c48c525f8711780f3f7c59bf92f1760f38317218 (patch) | |
tree | a8f29854d438950b233b8ec2968319ac4f881121 /examples | |
parent | 206e01de117cc65ed8713ac9fdebc57ba4532ec3 (diff) |
examples : fixed path typos in embd-input (#2214)
Diffstat (limited to 'examples')
-rw-r--r-- | examples/embd-input/README.md | 2 | ||||
-rw-r--r-- | examples/embd-input/llava.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/embd-input/README.md b/examples/embd-input/README.md index 02d028f..5c4c75e 100644 --- a/examples/embd-input/README.md +++ b/examples/embd-input/README.md @@ -17,7 +17,7 @@ make import torch bin_path = "../LLaVA-13b-delta-v1-1/pytorch_model-00003-of-00003.bin" -pth_path = "./examples/embd_input/llava_projection.pth" +pth_path = "./examples/embd-input/llava_projection.pth" dic = torch.load(bin_path) used_key = ["model.mm_projector.weight","model.mm_projector.bias"] diff --git a/examples/embd-input/llava.py b/examples/embd-input/llava.py index 2f20cb7..bcbdd2b 100644 --- a/examples/embd-input/llava.py +++ b/examples/embd-input/llava.py @@ -59,7 +59,7 @@ if __name__=="__main__": # Also here can use pytorch_model-00003-of-00003.bin directly. a.load_projection(os.path.join( os.path.dirname(__file__) , - "llava_projetion.pth")) + "llava_projection.pth")) respose = a.chat_with_image( Image.open("./media/llama1-logo.png").convert('RGB'), "what is the text in the picture?") |