拆分了生文和海报模块
This commit is contained in:
parent
8326485d8a
commit
65857475b1
0
.gitignore → TWEET/.gitignore
vendored
0
.gitignore → TWEET/.gitignore
vendored
68
TWEET/config/poster_gen.json
Normal file
68
TWEET/config/poster_gen.json
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"poster_system_prompt": "resource/prompt/generatePosterContent/system.txt",
|
||||
"poster_user_prompt": "resource/prompt/generatePosterContent/user.txt",
|
||||
"enable_poster_generation": true,
|
||||
"anti_duplicate_hash": false,
|
||||
"model": {
|
||||
"temperature": 0.5,
|
||||
"top_p": 0.7,
|
||||
"presence_penalty": 1.1
|
||||
},
|
||||
"poster_jobs": [
|
||||
{
|
||||
"topic_index": 0,
|
||||
"variant_index": 0,
|
||||
"template": "vibrant",
|
||||
"size": [900, 1200],
|
||||
"generate_text": true,
|
||||
"text_generation_params": {
|
||||
"user_prompt_path": "resource/prompt/poster/vibrant_user.txt",
|
||||
"content_data": ["蔚蓝海岸", "夏日", "天堂", "探索"]
|
||||
},
|
||||
"params": {
|
||||
"image_path": "resource/data/images/scenery1.jpg"
|
||||
}
|
||||
},
|
||||
{
|
||||
"topic_index": 0,
|
||||
"variant_index": 1,
|
||||
"template": "business",
|
||||
"size": [900, 1200],
|
||||
"generate_text": false,
|
||||
"params": {
|
||||
"top_image_path": "resource/data/images/hotel1.jpg",
|
||||
"bottom_image_path": "resource/data/images/hotel2.jpg",
|
||||
"small_image_paths": [
|
||||
"resource/data/images/details1.jpg",
|
||||
"resource/data/images/details2.jpg",
|
||||
"resource/data/images/details3.jpg"
|
||||
],
|
||||
"hotel_info": {
|
||||
"title": "豪华商务酒店",
|
||||
"feature": "五星级设施与服务",
|
||||
"info_sections": [
|
||||
{"title": "客房", "text": "200间豪华客房,享受极致舒适。"},
|
||||
{"title": "餐饮", "text": "米其林星级主厨,提供全球美食。"},
|
||||
{"title": "会议", "text": "1000平米无柱宴会厅,满足各种需求。"}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"topic_index": 1,
|
||||
"variant_index": 0,
|
||||
"template": "collage",
|
||||
"size": [900, 1200],
|
||||
"generate_text": false,
|
||||
"params": {
|
||||
"image_paths": [
|
||||
"resource/data/images/scenery1.jpg",
|
||||
"resource/data/images/scenery2.jpg",
|
||||
"resource/data/images/hotel1.jpg",
|
||||
"resource/data/images/details1.jpg"
|
||||
],
|
||||
"style": "asymmetric"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
TWEET/core/config/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
TWEET/core/config/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
TWEET/core/config/__pycache__/manager.cpython-310.pyc
Normal file
BIN
TWEET/core/config/__pycache__/manager.cpython-310.pyc
Normal file
Binary file not shown.
BIN
TWEET/core/config/__pycache__/models.cpython-310.pyc
Normal file
BIN
TWEET/core/config/__pycache__/models.cpython-310.pyc
Normal file
Binary file not shown.
BIN
TWEET/utils/__pycache__/file_io.cpython-310.pyc
Normal file
BIN
TWEET/utils/__pycache__/file_io.cpython-310.pyc
Normal file
Binary file not shown.
BIN
TWEET/utils/__pycache__/pipeline.cpython-310.pyc
Normal file
BIN
TWEET/utils/__pycache__/pipeline.cpython-310.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user