Skip to content

Commit

Permalink
Merge pull request #602 from ShiromiyaG/fix-my-mistakes-2
Browse files Browse the repository at this point in the history
Fix core.py train
  • Loading branch information
blaisewf authored Aug 16, 2024
2 parents e54bc8c + 41384ee commit 642c6da
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,14 @@ def parse_arguments():
help="Cache training data in GPU memory.",
default=False,
)
train_parser.add_argument(
"--index_algorithm",
type=str,
choices=["Auto", "Faiss", "KMeans"],
help="Choose the method for generating the index file.",
default="Auto",
required=False,
)

# Parser for 'index' mode
index_parser = subparsers.add_parser(
Expand Down Expand Up @@ -1465,6 +1473,7 @@ def main():
pretrained=args.pretrained,
custom_pretrained=args.custom_pretrained,
sync_graph=args.sync_graph,
index_algorithm=args.index_algorithm,
cache_data_in_gpu=args.cache_data_in_gpu,
g_pretrained_path=args.g_pretrained_path,
d_pretrained_path=args.d_pretrained_path,
Expand Down

0 comments on commit 642c6da

Please sign in to comment.