路径调整
This commit is contained in:
+2
-1
@@ -9,9 +9,10 @@
|
||||
import {Buffer} from 'node:buffer';
|
||||
import {spawnSync} from 'node:child_process';
|
||||
import {cpSync, existsSync, mkdirSync, readFileSync, rmSync, unlinkSync, writeFileSync} from 'node:fs';
|
||||
import {fileURLToPath} from 'node:url';
|
||||
import path from 'node:path';
|
||||
|
||||
const repoRoot = path.dirname(new URL(import.meta.url).pathname);
|
||||
const repoRoot = path.dirname(fileURLToPath(import.meta.url));
|
||||
const defaultGenielabsDir = '/Users/zhaoziyu/Documents/Codex/2026-09-10/diao/work/repos/spine-animation-ai';
|
||||
const defaultModel = 'gpt-image-2';
|
||||
const positivePrompt = [
|
||||
|
||||
+2
-1
@@ -7,6 +7,7 @@ and case-summary.json under --out-dir.
|
||||
"""
|
||||
import argparse, json, shutil, subprocess
|
||||
from pathlib import Path
|
||||
import sys
|
||||
from PIL import Image
|
||||
import numpy as np
|
||||
|
||||
@@ -18,7 +19,7 @@ def main():
|
||||
ap.add_argument('--candidate', action='append', nargs=2, metavar=('NAME','PARTS_DIR'), required=True)
|
||||
args = ap.parse_args()
|
||||
root = Path(args.out_dir); root.mkdir(parents=True, exist_ok=True)
|
||||
py = '/Users/zhaoziyu/anaconda3/bin/python'
|
||||
py = sys.executable
|
||||
ref = Image.open(args.reference).convert('RGBA')
|
||||
ref_rgb = np.asarray(ref)[:, :, :3].astype(np.float32)
|
||||
ref_fg = np.asarray(ref)[:, :, 3] > 128
|
||||
|
||||
Reference in New Issue
Block a user