https://github.com/Ron-Digital/ComfyUI-SceneGenerator
JSON dosyalarından sahne önizleme fotoğrafları oluşturmak için kullanılan bir ComfyUI eklentisidir.
https://github.com/Ron-Digital/ComfyUI-SceneGenerator
Last synced: 4 months ago
JSON representation
JSON dosyalarından sahne önizleme fotoğrafları oluşturmak için kullanılan bir ComfyUI eklentisidir.
- Host: GitHub
- URL: https://github.com/Ron-Digital/ComfyUI-SceneGenerator
- Owner: Ron-Digital
- Created: 2024-05-27T09:21:54.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-06-28T19:36:30.000Z (10 months ago)
- Last Synced: 2024-06-28T20:49:23.041Z (10 months ago)
- Language: Python
- Size: 598 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-comfyui - **ComfyUI-SceneGenerator** - SceneGenerator is a ComfyUI plugin used to generate scene preview photos from JSON files. This plugin creates scenes based on the provided JSON configuration and produces two different image outputs: one containing only the products and the other containing both the products and the props. (All Workflows Sorted by GitHub Stars)
README
# ComfyUI-SceneGenerator
ComfyUI-SceneGenerator, JSON dosyalarından sahne önizleme fotoğrafları oluşturmak için kullanılan bir ComfyUI eklentisidir. Bu eklenti, verilen JSON yapılandırmasına göre sahneleri oluşturur ve iki farklı görüntü çıktısı üretir: biri yalnızca ürünleri içerir, diğeri ise hem ürünleri hem de "props"ları içerir.

## Kurulum
### Adımlar
1. Bu repoyu klonlayın:
```shgit clone https://github.com/username/ComfyUI-SceneGenerator.git
cd ComfyUI-SceneGenerator
```
2. Gerekli Python paketlerini yükleyin:
```sh
pip install -r requirements.txt
```3. `ComfyUI` kurulumunuzu güncelleyin ve bu eklentiyi tanıyacak şekilde yapılandırın.
## Kullanım
ComfyUI-SceneGenerator, JSON yapılandırmasını kullanarak sahne önizlemeleri oluşturur.
### Örnek JSON
Aşağıda örnek bir JSON yapılandırması bulunmaktadır:
```json
{
"json_img": {
"stage": {
"width": 1024,
"height": 1024
},
"json": [
{
"config": {
"width": 832,
"height": 844,
"x": -1221.8473873472615,
"y": 65.87637986788866,
"z": 0,
"flip": "[1,1]",
"rotation": 0,
"src": "https://example.com/image1.png",
"name": "fire",
"scale": {
"x": 0.7592784445653415,
"y": 0.7592784445653414
},
"p_type": "prop"
}
},
{
"config": {
"width": 169,
"height": 600,
"x": 458.3287536766208,
"y": 196.23299366788603,
"z": 3,
"flip": "[1,1]",
"rotation": 29,
"src": "https://example.com/image5.png",
"name": "tube of cream",
"scale": {
"x": 1.1271834266188345,
"y": 1.1271834266188288
},
"p_type": "product"
}
}
]
}
}