PrAYtele/Stable-Texturify
关于
使用 stable-diffusion 和 blender 为 3D 模型创建纹理
创作与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Stable-Texturify
Create textures for 3d cloth and avatar using stable-diffusion and blender
README
Installation Requirements
To successfully use this project, you need to meet the following installation requirements:
automatic1111 webui: Ensure that you have installed automatic1111 webui. You can download it from the official website and follow their installation instructions.
controlnet: Make sure you have controlnet installed. You can obtain it from the GitHub repository and follow its installation documentation.
Blender 2.93 with Python: You need to install Blender version 2.93 and ensure it supports Python. You can download and install it from the official Blender website.
Usage
Using this project is straightforward; just follow these steps:
Pass the path to the model file you want to texture in the render config. It can be in .obj, .fbx, or .vrm format. For example:
render config: model_path: path/to/your/modelConfigure Parameters: You can set parameters in the configuration file according to your requirements so that the project behaves as expected.
Make sure you have run sd-webui as ''--api'' mode.
Run run.sh: Execute the main script of the project, which will read your configuration and begin processing the model.
./run.sh
Example
Here's an example configuration file that includes the model file path and some parameter settings:
render config:
fbx_model_path: "./tmp.obj"
output_folder: './'
# textures:
# back: "path/to/your/texture/back.png"
# front: "path/to/your/texture/front.png"
# left: "path/to/your/texture/left.png"
sd_model_checkpoint: 'darkSushi25D25D_v40.safetensors'
seg_node:
random_color: True
depth_node:
map_value_node_offset: 0.5
map_value_node_size: 0.7
camera:
view: ['back','front','left','right']
distance: 1.5
side_angle: 80
resolution:
width: 1600
height: 1600
textures: {
back: "./Sres_0.png",
front: "./Sres_1.png",
left: "./Sres_2.png"
# 'right': sides_image
}
inpaint_textures: {
back: "./Sres_0_brinting.png",
front: "./Sres_1_brinting.png",
left: "./Sres_inpainted_1.png",
right: "./Sres_inpainted_0.png"
}
project_order: ['back','front','left','right']
If you run it correctly, you will see the following intermediate files in the output directory
Finally, you will get a model_with_texture_remap.fbx file
For VRM model
1.Original model like this:
2.Request sd-webui use depth map and lineart like this:
Adjust your arguments for sd-webui and you will get character concept picture like this:
3.Run run_vrm.sh and you got it:
https://github.com/PrAYtele/Stable-Texturify/assets/49559621/fe95ee07-13f6-413d-a5b0-59aa29072715
Help and Support
If you encounter any issues during installation or usage, please feel free to reach out to our support team at any time. You can also submit issues or request help on our GitHub repository.
License
This project is released under the MIT License. Refer to the license file for more details.
Thank you for using our project! We hope you find it enjoyable to use!
探索相关项目
加载中…