to-3d — 평면도로 의류 3D 입체 이미지 생성 (입체 평면도 → 3D 입체 의류 이미지)
책상 위에 펼쳐진 의류 사진을 입체감 있는 3D 이미지로 변환합니다. 마치 보이지 않는 사람이 입고 있는 것처럼 보입니다 (업계 용어: 고스트 마네킹 / 투명 모델).
용도: 평면도는 저렴하지만 저렴해 보이고, 실제 인물 사진은 비싸며 모든 카테고리에 적합하지 않습니다. 3D 입체 이미지는 그 중간 단계입니다. 질감이 있고 핏을 설명할 수 있으며, 모델 비용과 초상권 문제가 없습니다.
생성 결과 예시
| 입력: 평면도 |
|---|
garment-flatlay.jpg — 올리브 그린 케이블 니트 크루넥 스웨터 평면도, 800×800 |
실제 실행 명령어:
dlazy gpt-image-2 \
--prompt 'Turn this flat-lay garment photo into a dimensional 3D ghost-mannequin product shot. The olive-green cable-knit crewneck sweater must gain realistic volume: filled shoulders and chest, sleeves with natural bend, visible interior of the collar, soft self-shadow under the hem, as if worn by an invisible mannequin. Keep the garment 100% faithful: same olive-green colour, same cable-knit and diamond stitch pattern, same ribbed collar and cuffs, same woven cuff label. Clean seamless light-grey studio background, soft top light, sharp fibre detail. No mannequin, no person, no text.' \
--images docs/to-3d/garment-flatlay.jpg \
--size 1024x1024 --quality medium --imageFormat jpeg \
--save docs/to-3d/example-output.jpg
출력
example-output.jpg — 1024×1024. 어깨와 가슴이 채워지고, 소매가 자연스럽게 구부러지며, 칼라 안쪽과 뒤 안감이 드러나고, 밑단에 자체 그림자가 생깁니다. 케이블과 다이아몬드 패턴, 올리브 그린 색상, 골지 구조 및 오른쪽 소매 직물 라벨이 유지되며, 이미지에 마네킹이나 사람이 나타나지 않습니다.
1. 기능 범위
| 기능 | 설명 |
|---|---|
| 입체화 | 어깨/가슴 채움, 소매 굽힘, 칼라 안쪽 노출, 밑단 자체 그림자 |
| 의류 유형 | 상의 / 하의 / 원피스 / 아우터 / 이너웨어 / 아동복 / 홈웨어 |
| 형태 제어 | 참조 이미지 (특정 입체 형태 복사) 또는 사용자 정의 프롬프트 |
| 소재 향상 | 켜기/끄기; 켜면 니트, 털, 가죽의 표면 디테일이 더 선명해짐 |
| 생성 비율 | 1:1 (정사각형 메인 이미지) / 3:4 (세로형 상세 페이지) |
하지 않음: 색상, 짜임, 프린트 및 골지 구조 변경하지 않음; 사람 몸체와 얼굴 생성하지 않음; 의류 실제 핏 비율 변경하지 않음.
2. 입력 소재 규칙
생성 전에 다음 하드 제약 조건을 자체 점검하세요:
- 크기: 20KB ~ 15MB
- 해상도: 400×400 이상
- 형식: jpg / jpeg / png / webp
권장 입력 (✅): 단색 배경, 완전히 펼쳐짐, 주름 없음, 겹침 없음, 정면 전체, 칼라와 밑단 경계가 명확한 단일 품목 평면도.
효과를 현저히 떨어뜨리는 입력 (❌)
| 문제 | 설명 |
|---|---|
| 접힌 배치 | 소매가 몸통 위로 접혀 있어 모델이 소매 길이를 계산할 수 없음 |
| 넓은 면적의 주름 | 주름이 구조로 인식되어 이상한 모양으로 부풀어 오름 |
| 이미 사람이 착용 | 실제 사람 착용 사진은 one-shot 사용 |
| 세트 동시 촬영 | 단일 품목으로 분리하여 각각 실행 |
3. 입체 형태의 세 가지 제어 포인트
| 제어 포인트 | 프롬프트에 작성 | 작성하지 않으면 어떻게 되나 |
|---|---|---|
| 채움 정도 | filled shoulders and chest with realistic volume, natural fabric drape | 풍선처럼 부풀어 오르고 핏이 왜곡됨 |
| 소매 자세 | sleeves with a natural bend, hanging slightly forward and away from the body | 소매가 몸에 딱 붙어 뻣뻣해짐 |
| 칼라 안쪽 | visible interior of the collar showing the inner facing | 칼라는 평평한 구멍이 되어 가장 쉽게 티가 남 |
다음 두 가지 환경 제약 조건을 추가합니다:
soft self-shadow under the hem and inside the sleeves
No mannequin, no person, no visible support — the garment must appear worn by an invisible body.
No mannequin, no person 문장은 반드시 작성해야 합니다. 그렇지 않으면 모델이 자주 마네킹이나 반신을 직접 생성합니다.
4. 도구 호출
이 스킬은 dLazy의 gpt-image-2 (이미지 편집 모델)를 사용합니다. 평면에서 부피를 추론하려면 강력한 기하학적 이해가 필요하며, 동시에 짜임과 색상이 변경되지 않도록 엄격하게 유지해야 합니다.
호출 방식
동등한 두 가지 작성 방법 중 하나를 선택하세요. 통합 진입점이 자동으로 백엔드를 선택하고, 실패 시 재시도하며, 디렉토리를 생성하고 파일을 저장하며, 비용을 추정합니다:
# A. 통합 진입점 (권장): 모든 백엔드로 전환 가능, --dry-run 추가 시 무료로 테스트 실행
node scripts/gen.mjs --task to-3d \
--prompt '<아래 프롬프트 템플릿 참조>' \
--images <아래 표 순서대로> \
--save output/to-3d-<sku>.jpg
# B. dLazy CLI 직접 사용 (Node 종속성을 원하지 않을 때, 효과는 동일)
dlazy gpt-image-2 --prompt '...' --images ... --save output/to-3d.jpg
매개변수 규칙 (이 스킬 고정 사용법)
| 매개변수 | 값 | 이유 |
|---|---|---|
--images | [평면도]; 형태 참조 포함 시 [평면도, 형태 참조 이미지] | 순서는 프롬프트의 image 1 / 2에 해당 |
--size | 1024x1024 (정사각형 메인 이미지) / 1024x1536 (세로형 긴 품목, 원피스) | 원래 사이트의 1:1 / 3:4 비율 대응 |
--quality | high ("소재 향상" 활성화와 동일) / medium (비활성화) | 니트, 털 종류는 반드시 high 사용 |
--imageFormat | jpeg | 전자상거래 업로드 일반 형식 |
--batch | 2 ~ 3 | 부피 추론에는 무작위성이 있음 |
--save | docs/to-3d/output-<sku>.jpg | 직접 파일 저장 |
명령어 예제
# 기본 호출
dlazy gpt-image-2 \
--prompt 'Turn this flat-lay garment photo into a dimensional 3D ghost-mannequin product shot. Filled shoulders and chest with realistic volume, sleeves with a natural bend, visible interior of the collar, soft self-shadow under the hem. Keep the garment 100% faithful: same colour, same stitch pattern, same ribbing, same label. Clean seamless light-grey studio background. No mannequin, no person, no text.' \
--images docs/to-3d/garment-flatlay.jpg \
--size 1024x1024 --quality high
# 복잡한 호출: 특정 입체 형태 복사 + 세로형 + 3장 생성 후 선택
dlazy gpt-image-2 \
--prompt 'Turn image 1 (a flat-lay garment) into a dimensional 3D ghost-mannequin product shot, copying the volume, posture and camera angle of image 2. Filled shoulders and chest with realistic volume and natural fabric drape, sleeves with a natural bend hanging slightly forward, visible interior of the collar showing the inner facing, soft self-shadow under the hem and inside the sleeves. Keep the garment 100% faithful to image 1: same colour, same knit structure, same print placement, same ribbing and label. Clean seamless light-grey studio background, soft top light, sharp fibre detail. No mannequin, no person, no visible support, no text.' \
--images docs/to-3d/garment-flatlay.jpg docs/to-3d/volume-ref.jpg \
--size 1024x1536 --quality high --imageFormat jpeg \
--batch 3 --save docs/to-3d/output-sku001.jpg
# 먼저 비용만 추정하고 실제 실행하지 않음
dlazy gpt-image-2 --dry-run --prompt '...' --images a.jpg --size 1024x1024 --quality high
추가 자료
| 찾고자 하는 내용 | 위치 |
|---|---|
| 인증, 다중 백엔드 설정, 출력 구조, 오류 코드 | references/provider-cli.md |
gpt-image-2의 모든 사용 가능한 매개변수 | references/model-flags.md |
| 통합 진입점의 모든 옵션 | node scripts/gen.mjs --help |
5. 프롬프트 템플릿
Turn this flat-lay garment photo into a dimensional 3D ghost-mannequin product shot.
The [카테고리 + 색상 + 원단] must gain realistic volume:
filled shoulders and chest, sleeves with a natural bend,
visible interior of the collar showing the inner facing,
soft self-shadow under the hem and inside the sleeves,
as if worn by an invisible body.
Keep the garment 100% faithful: same [색상], same [짜임/질감], same [프린트/패턴 위치],
same [골지/칼라/소매단/밑단 구조], same [택/직물 라벨].
Clean seamless [배경색] studio background, soft top light, sharp fibre detail.
No mannequin, no person, no visible support, no text.
문제별 추가 수정 문장
| 문제 | 프롬프트 끝에 추가 |
|---|---|
| 마네킹이나 반신이 생성됨 | Absolutely no mannequin, torso, neck, arms or hands anywhere in the frame — only the garment. |
| 과도하게 부풀어 오르고 핏이 뚱뚱해짐 | Keep the original garment proportions: body width, sleeve length and hem width must match image 1 exactly. Add volume, not size. |
| 칼라가 평평한 구멍임 | The collar opening must show the inner facing and the inside back of the garment, with correct depth and shadow. |
| 짜임이 매끄럽게 처리됨 | --quality high로 변경하고 resolve individual knit loops and yarn twist 추가 |
| 그림자 방향이 일정하지 않음 | Single soft top-left light source; one consistent contact shadow beneath the garment. |
6. 실행 프로세스
- 입력 검증: 완전히 펼쳐짐, 접힘 없음, 큰 주름 없음, 단일 품목, 경계 명확.
- 세 가지 제어 포인트 작성 (채움 / 소매 자세 / 칼라 안쪽) + 두 가지 환경 제약 조건 (자체 그림자 / 마네킹 금지).
- 충실도 항목 작성: 색상, 짜임, 프린트 위치, 골지 구조, 택.
- 비율 및 품질 선택: 니트, 털 종류는 모두
--quality high사용. --dry-run비용 추정 → 실제 실행 →--batch 2~3이미지 생성 후 선택 →docs/to-3d/에 저장.- 품질 검사: 사람 몸체가 생성되었는지, 핏이 뚱뚱해졌는지, 칼라 안쪽이 올바른지, 짜임이 유지되었는지 확인.
7. 자주 묻는 질문
| 현상 | 원인 | 처리 |
|---|---|---|
| 마네킹 / 반신 생성됨 | 금지 문장 누락 | 강화된 금지 문장 추가 (5절) |
| 핏이 뚱뚱해짐 | 볼륨만 추가하고 비율 유지를 언급하지 않음 | 비율 유지 문장 추가: Add volume, not size. |
| 칼라가 평평한 검은 구멍임 | 안쪽 설명 누락 | 칼라 안쪽 문장 추가 |
| 소매가 몸에 딱 붙어 뻣뻣함 | 소매 자세 설명 누락 | hanging slightly forward and away from the body 추가 |
| 짜임이 흐릿함 | --quality medium | high로 변경; 또는 material-enhancement 연결 |
| 접힌 배치 이미지의 효과가 매우 나쁨 | 입력 규칙 위반 | 완전히 펼쳐진 평면도로 다시 촬영 |
팁
자세한 내용은 https://dlazy.com 을 방문하세요.

