EntropyDrop commited on
Commit
ac4ade7
·
1 Parent(s): 2c3f34a

feat: update skins

Browse files
control_imgs/lowpoly/ac569fdeb36124e8.png ADDED

Git LFS Details

  • SHA256: faec9a05d46aca9c611d9bda4a2149f1bad52e4e6462c6442b446ff281b3a964
  • Pointer size: 132 Bytes
  • Size of remote file: 1.71 MB
control_imgs/lowpoly/anya-forger.png ADDED

Git LFS Details

  • SHA256: df21d62adaaead32469191e1788a9ebe18e11b45676621343c1a8ed30bc3b418
  • Pointer size: 132 Bytes
  • Size of remote file: 1.76 MB
control_imgs/lowpoly/cba099198414fdf1.png ADDED

Git LFS Details

  • SHA256: 0640408c2c345097cbafa09d58854b60182a6cc382fdcb4f464d160f6388bd4f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.96 MB
control_imgs/lowpoly/rivals.png ADDED

Git LFS Details

  • SHA256: fbf6b23569c4c5d70d60fed20823fcd5e3a89344a07f84820bb1349066e3bf26
  • Pointer size: 132 Bytes
  • Size of remote file: 2 MB
control_imgs/lowpoly/santa-claus.png ADDED

Git LFS Details

  • SHA256: 9d53acd9afdee5de0a335eb134ce441f6859ef07607185b8e6550a15d6550f8c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.77 MB
control_imgs/lowpoly/snow-white.png ADDED

Git LFS Details

  • SHA256: d8e6898e9cda32a576abc53bd9da9e762f1230493bfdbc107cc2160e119b4274
  • Pointer size: 132 Bytes
  • Size of remote file: 1.73 MB
control_imgs/lowpoly/snowball-fight.png ADDED

Git LFS Details

  • SHA256: 2dc2bf5cf542fe40bc72e01ea6a8e0785347e3196788d53c4f7809e56e61e065
  • Pointer size: 132 Bytes
  • Size of remote file: 1.61 MB
control_imgs/lowpoly/snowy-stockings.png ADDED

Git LFS Details

  • SHA256: bc538ddfe3c76f4fcf5480d8f6daf732f54ce1d8ce35d8d75f2f1b1834b798e3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.71 MB
control_imgs/lowpoly/summer2.png ADDED

Git LFS Details

  • SHA256: 344ed1fda621fd177e90e8e810cb69e81871b641d023163f19f08ccbaaf2473c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.77 MB
control_imgs/lowpoly/zenitsu-agatsuma.png ADDED

Git LFS Details

  • SHA256: de32bc5d3a3234157ab0e4638a84019075f4b91fcbd6dc0b456ccafe44b04925
  • Pointer size: 132 Bytes
  • Size of remote file: 1.61 MB
gpt_image.py CHANGED
@@ -58,7 +58,7 @@ def generate_image(s3_urls, prompt):
58
  "aspect_ratio": "1:1",
59
  "images": s3_urls,
60
  "n": 1,
61
- "quality": "auto",
62
  "resolution": "1K",
63
  "response_format": "url",
64
  "size": "1024x1024"
 
58
  "aspect_ratio": "1:1",
59
  "images": s3_urls,
60
  "n": 1,
61
+ "quality": "high",
62
  "resolution": "1K",
63
  "response_format": "url",
64
  "size": "1024x1024"
gpt_skin2real.py CHANGED
@@ -16,7 +16,7 @@ def main():
16
  parser = argparse.ArgumentParser(description="Render Minecraft skin to 3D views, upload to S3, and call img2img model.")
17
  parser.add_argument("skin", help="Path to local Minecraft skin image file.")
18
  parser.add_argument("-o", "--output", help="Output path for the generated image. Defaults to 'result_<timestamp>.png'.")
19
- parser.add_argument("-p", "--prompt", default="生成ta的全身真人照片,再生成ta的背面放在图片右边", help="Prompt for the img2img model.")
20
  parser.add_argument("-r", "--render-only", action="store_true", help="Only render the 3D front and back views locally, without calling the S3/img2img pipeline.")
21
  args = parser.parse_args()
22
 
 
16
  parser = argparse.ArgumentParser(description="Render Minecraft skin to 3D views, upload to S3, and call img2img model.")
17
  parser.add_argument("skin", help="Path to local Minecraft skin image file.")
18
  parser.add_argument("-o", "--output", help="Output path for the generated image. Defaults to 'result_<timestamp>.png'.")
19
+ parser.add_argument("-p", "--prompt", default="生成ta的全身真人照片,再生成ta的背面放在图片右边。请准确还原人物的特征细节,注意真人照片里面通常不包含像素风格的装饰。", help="Prompt for the img2img model.")
20
  parser.add_argument("-r", "--render-only", action="store_true", help="Only render the 3D front and back views locally, without calling the S3/img2img pipeline.")
21
  args = parser.parse_args()
22
 
gpt_skin2real_auto.py CHANGED
@@ -22,6 +22,19 @@ def main():
22
 
23
  print(f"[*] Found {len(skin_files)} skin files in {skins_dir}.")
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  skipped = 0
26
  processed = 0
27
 
@@ -37,18 +50,14 @@ def main():
37
  print("="*60)
38
  print(f"[*] Processing: {skin_file}")
39
 
40
- # Check skin size and auto-convert to 64x64 in-place if legacy format
41
  try:
42
  with Image.open(skin_path) as img:
43
- width, height = img.size
44
- if (width, height) == (64, 32):
45
- print(f"[*] Detected legacy 64x32 skin format for {skin_file}. Auto-converting to 64x64...")
46
- convert_skin_64x32_to_64x64(skin_path, skin_path)
47
- elif (width, height) != (64, 64):
48
  print(f"[!] Warning: Skin '{skin_file}' has unexpected dimensions {img.size}. Skipping.")
49
  continue
50
  except Exception as e:
51
- print(f"[!] Error checking skin size: {e}")
52
  continue
53
 
54
  # Invoke gpt_skin2real.py using subprocess
 
22
 
23
  print(f"[*] Found {len(skin_files)} skin files in {skins_dir}.")
24
 
25
+ # 1. Pre-repair pass: check and convert all legacy 64x32 skins in the candidate directory
26
+ print("[*] Running pre-repair check on all skin files...")
27
+ for skin_file in skin_files:
28
+ skin_path = os.path.join(skins_dir, skin_file)
29
+ try:
30
+ with Image.open(skin_path) as img:
31
+ width, height = img.size
32
+ if (width, height) == (64, 32):
33
+ print(f"[*] Pre-repair: Detected legacy 64x32 skin format for {skin_file}. Auto-converting to 64x64...")
34
+ convert_skin_64x32_to_64x64(skin_path, skin_path)
35
+ except Exception as e:
36
+ print(f"[!] Pre-repair: Error checking skin size for {skin_file}: {e}")
37
+
38
  skipped = 0
39
  processed = 0
40
 
 
50
  print("="*60)
51
  print(f"[*] Processing: {skin_file}")
52
 
53
+ # Verify skin size (should be 64x64 after pre-repair)
54
  try:
55
  with Image.open(skin_path) as img:
56
+ if img.size != (64, 64):
 
 
 
 
57
  print(f"[!] Warning: Skin '{skin_file}' has unexpected dimensions {img.size}. Skipping.")
58
  continue
59
  except Exception as e:
60
+ print(f"[!] Error verifying skin size: {e}")
61
  continue
62
 
63
  # Invoke gpt_skin2real.py using subprocess
skins/.DS_Store CHANGED
Binary files a/skins/.DS_Store and b/skins/.DS_Store differ
 
skins/lowpoly/{975b94368d87cede.png → 09e92b94f8035dd6.png} RENAMED
File without changes
skins/lowpoly/ac569fdeb36124e8.png ADDED

Git LFS Details

  • SHA256: 62a79517536412dc006a1ebbc6242d7960c6ab110fb459afbeec7d8a591bb4d8
  • Pointer size: 129 Bytes
  • Size of remote file: 1.08 kB
skins/lowpoly/anya-forger.png ADDED

Git LFS Details

  • SHA256: 53c602e291d4c2cb25fe721f8e74d9f9507ceabf030474e8aef5f9f5c322f13d
  • Pointer size: 129 Bytes
  • Size of remote file: 2.82 kB
skins/lowpoly/cool-summer.png ADDED

Git LFS Details

  • SHA256: 7714f92d9b1edcba5543dee39d8b94f295ea229432d9759970b5d3982e223649
  • Pointer size: 129 Bytes
  • Size of remote file: 2 kB
skins/lowpoly/d2055d41587a47a0.png ADDED

Git LFS Details

  • SHA256: 7143ef488b6f6546fddf8d52fbc1ebff3023e50b99c20add1e502afeacf302ff
  • Pointer size: 129 Bytes
  • Size of remote file: 1.06 kB
skins/lowpoly/e3610b319b59154e.png ADDED

Git LFS Details

  • SHA256: 7dbaa10dad906209f8fd8d88f06bd01703f999b38ba4fd8fe2b8d8d1afd34365
  • Pointer size: 129 Bytes
  • Size of remote file: 1.18 kB
skins/lowpoly/late-summer.png ADDED

Git LFS Details

  • SHA256: f56b38bd8fe7bdaada77662273b51196969d7a843d4612b0506e8dcb168eab8e
  • Pointer size: 128 Bytes
  • Size of remote file: 940 Bytes
skins/lowpoly/one-day-i-will-stop-falling-in-love-with-you.png ADDED

Git LFS Details

  • SHA256: c3fc1e32b54b68b1f699c35e2e0ec6247fba487e6f0d7400947d5d21ec5c0cc3
  • Pointer size: 128 Bytes
  • Size of remote file: 885 Bytes
skins/lowpoly/rivals.png ADDED

Git LFS Details

  • SHA256: f44c4dda5d95c3b44bc27f842f79f1513d3baf2c223465322694750b7d2e88c0
  • Pointer size: 129 Bytes
  • Size of remote file: 1.48 kB
skins/lowpoly/santa-claus.png ADDED

Git LFS Details

  • SHA256: dbf9c171985b9a83b500797470c64f06c1397a2717764ee69fa6b8bbe3cd2da1
  • Pointer size: 129 Bytes
  • Size of remote file: 1.2 kB
skins/lowpoly/snow-white.png ADDED

Git LFS Details

  • SHA256: f6a5d40a619102cfa5f568d30d5351de19bc0edbe2adfbc0f3d6d660eaeb09ae
  • Pointer size: 128 Bytes
  • Size of remote file: 813 Bytes
skins/lowpoly/snowball-fight.png ADDED

Git LFS Details

  • SHA256: 20df430178fba2e49ba8626537aba865705c4b5cf789bebecb48cd0c481b890c
  • Pointer size: 129 Bytes
  • Size of remote file: 2.31 kB
skins/lowpoly/snowy-stockings.png ADDED

Git LFS Details

  • SHA256: ca4f7f5427ad0e11f3fbdb53e05d02b2093ef51dab00fe3c9b4cf1add0eab102
  • Pointer size: 129 Bytes
  • Size of remote file: 1.01 kB
skins/lowpoly/spring-color.png ADDED

Git LFS Details

  • SHA256: 0b006aef0c6f209fad98fdbe2b505e9bb3c0fd967ff510970ce906b319e45bf6
  • Pointer size: 129 Bytes
  • Size of remote file: 2.58 kB
skins/lowpoly/summer.png ADDED

Git LFS Details

  • SHA256: b6c18404dd525f8fd699b708c9bcc9e658ed9e74ced0ebd29943386df9bc2d6d
  • Pointer size: 129 Bytes
  • Size of remote file: 2.83 kB
skins/lowpoly/summer2.png ADDED

Git LFS Details

  • SHA256: 2ac0e15ee950d4fd12a3c3122183ac19fa92ce600d1d56bd75ab18eaed89b80e
  • Pointer size: 129 Bytes
  • Size of remote file: 1.58 kB
skins/lowpoly/zenitsu-agatsuma.png ADDED

Git LFS Details

  • SHA256: c129f2f9de8e240b16562fe1d0acf79bbb35a3a8375eb33dd54ce61115fe95ca
  • Pointer size: 129 Bytes
  • Size of remote file: 1.29 kB