EntropyDrop commited on
Commit
e1a8cb2
·
1 Parent(s): 72b170b
Files changed (1) hide show
  1. gpt_sim2real.py +0 -23
gpt_sim2real.py DELETED
@@ -1,23 +0,0 @@
1
- import sys
2
- import argparse
3
- import gpt_image
4
-
5
- def main():
6
- parser = argparse.ArgumentParser(description="Upload reference images to S3, call img2img model, poll for result, and cleanup temporary files.")
7
- parser.add_argument("images", nargs="+", help="Paths to local reference images.")
8
- parser.add_argument("-o", "--output", help="Output path for the generated image. Defaults to 'result_<timestamp>.png' in current directory.")
9
- parser.add_argument("-p", "--prompt", default="生成ta的真人照片,再生成ta的背面放在图片右边", help="Prompt for the img2img model.")
10
- args = parser.parse_args()
11
-
12
- try:
13
- gpt_image.generate_img2img(
14
- local_image_paths=args.images,
15
- prompt=args.prompt,
16
- output_path=args.output
17
- )
18
- except Exception as e:
19
- print(f"[!] Execution failed: {e}")
20
- sys.exit(1)
21
-
22
- if __name__ == '__main__':
23
- main()