nishanth-saka commited on
Commit
f65e838
·
verified ·
1 Parent(s): 2aad4f2

filename print

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -54,10 +54,12 @@ def depth_to_normal(depth):
54
  # ===============================
55
  def _process_saree_core(base_image: Image.Image, pattern_image: Image.Image, k: int = 5):
56
  # Auto-set k for BASE-BOTTOM images
57
- filename = getattr(base_image, "filename", "") or ""
58
  if any(name in filename for name in ["BASE-BOTTOM-2.png"]):
59
  k = 12
60
 
 
 
61
  # Prepare tensor
62
  img_pil = base_image.convert("RGB")
63
  img_np = np.array(img_pil)
 
54
  # ===============================
55
  def _process_saree_core(base_image: Image.Image, pattern_image: Image.Image, k: int = 5):
56
  # Auto-set k for BASE-BOTTOM images
57
+ filename = getattr(base_image, "filename", "") or ""
58
  if any(name in filename for name in ["BASE-BOTTOM-2.png"]):
59
  k = 12
60
 
61
+ print(f"[DEBUG] base_image filename: {filename}")
62
+
63
  # Prepare tensor
64
  img_pil = base_image.convert("RGB")
65
  img_np = np.array(img_pil)