Spaces:
Build error
Build error
Commit ·
aea387e
1
Parent(s): e71f8a4
update
Browse files26 unmodified lines272829303132336 unmodified lines4041424344454647484950515253545556575826 unmodified lines# if not os.path.exists('architecture.jpg'):# os.system('wget https://huggingface.co/JingyeChen22/textdiffuser2-full-ft/blob/main/architecture.jpg')# if not os.path.exists('gray256.jpg'):# os.system('wget https://huggingface.co/JingyeChen22/textdiffuser2-full-ft/blob/main/gray256.jpg')6 unmodified lines# # print(img.size)# exit(0)# #### import m1# from fastchat.model import load_model, get_conversation_template# m1_model_path = '/home/jingyechen/FastChat/1204_final'# m1_model, m1_tokenizer = load_model(# m1_model_path,# 'cuda',# 1,# None,# False,# False,# revision="main",# debug=False,# )#### import diffusion modelstext_encoder = CLIPTextModel.from_pretrained(26 unmodified lines272829303132336 unmodified lines4041424344454647484950515253545556575826 unmodified lines# if not os.path.exists('architecture.jpg'):os.system('wget https://huggingface.co/JingyeChen22/textdiffuser2-full-ft/tree/main/layout_planner_m1')# if not os.path.exists('gray256.jpg'):# os.system('wget https://huggingface.co/JingyeChen22/textdiffuser2-full-ft/blob/main/gray256.jpg')6 unmodified lines# # print(img.size)# exit(0)#### import m1from fastchat.model import load_model, get_conversation_templatem1_model_path = './layout_planner_m1'm1_model, m1_tokenizer = load_model(m1_model_path,'cuda',1,None,False,False,revision="main",debug=False,)#### import diffusion modelstext_encoder = CLIPTextModel.from_pretrained(
app.py+14-14