svjack commited on
Commit
2f0271b
·
verified ·
1 Parent(s): 77fe89a

Update run_caption_ds.py

Browse files
Files changed (1) hide show
  1. run_caption_ds.py +8 -1
run_caption_ds.py CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  import argparse
2
  from pathlib import Path
3
  import torch
@@ -9,7 +15,8 @@ from tqdm import tqdm # 引入 tqdm 用于显示进度条
9
  # Constants
10
  CLIP_PATH = "google/siglip-so400m-patch14-384"
11
  VLM_PROMPT = "A descriptive caption for this image:\n"
12
- MODEL_PATH = "meta-llama/Meta-Llama-3.1-8B"
 
13
  CHECKPOINT_PATH = Path("wpkklhc6")
14
 
15
  # Image Adapter
 
1
+ '''
2
+ git clone https://modelscope.cn/models/LLM-Research/Meta-Llama-3.1-8B
3
+
4
+ python run_caption_ds.py "svjack/Genshin-Impact-Couple-with-Tags-IID-Gender-Only-Two" --caption_column="joy-caption" --output_path="gen_couple_cap_dir"
5
+ '''
6
+
7
  import argparse
8
  from pathlib import Path
9
  import torch
 
15
  # Constants
16
  CLIP_PATH = "google/siglip-so400m-patch14-384"
17
  VLM_PROMPT = "A descriptive caption for this image:\n"
18
+ #MODEL_PATH = "meta-llama/Meta-Llama-3.1-8B"
19
+ MODEL_PATH = "Meta-Llama-3.1-8B"
20
  CHECKPOINT_PATH = Path("wpkklhc6")
21
 
22
  # Image Adapter