aptol commited on
Commit
b22d0c1
·
verified ·
1 Parent(s): a4d6f85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -26,6 +26,7 @@ STEP3: 6-view 렌더 ZIP + Blender 오토리깅(FBX) + VRM(옵션) + 기본 Blen
26
  import os, io, json, time, math, random, shutil, zipfile, hashlib, tempfile, subprocess, textwrap, traceback
27
  from pathlib import Path
28
  from typing import Any, Dict, List, Optional, Tuple, Union
 
29
 
30
  import gradio as gr
31
  try:
@@ -666,7 +667,7 @@ def step1_gpu_refine(
666
  raise gr.Error("STEP1 이미지가 없습니다. 먼저 STEP1(CPU)을 실행하세요.")
667
 
668
  # 항상 먼저 로드 (UnboundLocal 방지)
669
- img: Image.Image = Image.open(s1_path).convert("RGBA")
670
  (OUT/"step1").mkdir(parents=True, exist_ok=True)
671
  try:
672
  img.save(OUT/"step1"/"dbg_00_loaded.png")
 
26
  import os, io, json, time, math, random, shutil, zipfile, hashlib, tempfile, subprocess, textwrap, traceback
27
  from pathlib import Path
28
  from typing import Any, Dict, List, Optional, Tuple, Union
29
+ from PIL import Image as PILImage, ImageDraw, ImageFilter
30
 
31
  import gradio as gr
32
  try:
 
667
  raise gr.Error("STEP1 이미지가 없습니다. 먼저 STEP1(CPU)을 실행하세요.")
668
 
669
  # 항상 먼저 로드 (UnboundLocal 방지)
670
+ img: PILImage.Image = PILImage.open(s1_path).convert("RGBA")
671
  (OUT/"step1").mkdir(parents=True, exist_ok=True)
672
  try:
673
  img.save(OUT/"step1"/"dbg_00_loaded.png")