Skip to content

Commit

Permalink
fixbug
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowcz007 committed Apr 28, 2024
1 parent 3d2062e commit be6c32b
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def get_my_workflow_for_app(filename="my_workflow_app.json",category="",is_all=F
print("发生异常:", str(e))
else:
app_workflow_path=os.path.join(category_path, filename)
# print('app_workflow_path: ',app_workflow_path)
print('app_workflow_path: ',app_workflow_path)
try:
with open(app_workflow_path) as json_file:
apps = [{
Expand All @@ -273,7 +273,8 @@ def get_my_workflow_for_app(filename="my_workflow_app.json",category="",is_all=F
except Exception as e:
print("发生异常:", str(e))

if len(apps)==1 and category!='' and category!=None:
# 这个代码不需要
# if len(apps)==1 and category!='' and category!=None:
data=read_workflow_json_files(category_path)

for item in data:
Expand Down Expand Up @@ -602,6 +603,8 @@ async def post_prompt_result(request):

from .nodes.Video import VideoCombine_Adv,LoadVideoAndSegment,ImageListReplace,VAEEncodeForInpaint_Frames

from .nodes.TripoSR import LoadTripoSRModel,TripoSRSampler,SaveTripoSRMesh


# 要导出的所有节点及其名称的字典
# 注意:名称应全局唯一
Expand Down Expand Up @@ -686,7 +689,10 @@ async def post_prompt_result(request):
"ImageListReplace_":ImageListReplace,
"VAEEncodeForInpaint_Frames":VAEEncodeForInpaint_Frames,
"IncrementingListNode_":IncrementingListNode,
"PreviewMask_":PreviewMask_
"PreviewMask_":PreviewMask_,
"LoadTripoSRModel_": LoadTripoSRModel,
"TripoSRSampler_": TripoSRSampler,
"SaveTripoSRMesh": SaveTripoSRMesh
# "GamePal":GamePal
}

Expand Down Expand Up @@ -741,7 +747,10 @@ async def post_prompt_result(request):
"VAEEncodeForInpaint_Frames":"VAE Encode For Inpaint Frames ♾️Mixlab",
"IncrementingListNode_":"Create Incrementing Number List ♾️Mixlab",
"LoadImagesToBatch":"Load Images(base64) ♾️Mixlab",
"PreviewMask_":"Preview Mask"
"PreviewMask_":"Preview Mask",
"LoadTripoSRModel_": "Load TripoSR Model",
"TripoSRSampler_": "TripoSR Sampler",
"SaveTripoSRMesh": "Save TripoSR Mesh"
}

# web ui的节点功能
Expand Down

0 comments on commit be6c32b

Please sign in to comment.