mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
fix path error
This commit is contained in:
@@ -76,7 +76,7 @@ def main(args):
|
|||||||
cwd = os.getcwd()
|
cwd = os.getcwd()
|
||||||
print("Current Working Directory is: ", cwd)
|
print("Current Working Directory is: ", cwd)
|
||||||
os.chdir("finetune")
|
os.chdir("finetune")
|
||||||
if not is_url(args.caption_weights):
|
if not is_url(args.caption_weights) and not os.path.exists(args.caption_weights):
|
||||||
args.caption_weights = os.path.join("..", args.caption_weights)
|
args.caption_weights = os.path.join("..", args.caption_weights)
|
||||||
|
|
||||||
print(f"load images from {args.train_data_dir}")
|
print(f"load images from {args.train_data_dir}")
|
||||||
|
|||||||
Reference in New Issue
Block a user