Spaces:
Running on Zero
Running on Zero
Commit ·
2dac737
1
Parent(s): 09d3263
0516_zerogpu
Browse files3 unmodified lines456789103 unmodified linescolorFrom: purplecolorTo: redsdk: gradiosdk_version: 4.26.0app_file: app.pypinned: false---3 unmodified lines456789103 unmodified linescolorFrom: purplecolorTo: redsdk: gradiosdk_version: 4.31.3app_file: app.pypinned: false---
202 unmodified lines203204205206207208209210211134 unmodified lines346347348349350351352202 unmodified linesran_emb_path = os.path.join(save_dir, "ran_embeddings.pt")test_emb_path = os.path.join(save_dir, "id_embeddings.pt")if label == "create":print("new")random_embedding = torch.randn(1, 1, input_dim).to(device)torch.save(random_embedding, ran_emb_path)_, emb_dict = Embedding_Manager(tokenized_text=None, embedded_text=None, name_batch=None, random_embeddings = random_embedding, timesteps = None,)text_encoder.text_model.embeddings.forward = original_forward134 unmodified lineslabel="Prompts (each line corresponds to a frame).",info="Give simple prompt is enough to achieve good face fidelity",# placeholder="A photo of a person",value="a photo of a person\na person in front of the Great Wall\na person reading a book\na person wearing a Christmas hat\n",interactive=True)choice = gr.Radio(choices=["Create a new character", "Still use this character"], label="Choose your action")202 unmodified lines203204205206207208209210211134 unmodified lines346347348349350351352202 unmodified linesran_emb_path = os.path.join(save_dir, "ran_embeddings.pt")test_emb_path = os.path.join(save_dir, "id_embeddings.pt")random_embedding = torch.randn(1, 1, input_dim).to(device)if label == "create":print("new")torch.save(random_embedding, ran_emb_path)_, emb_dict = Embedding_Manager(tokenized_text=None, embedded_text=None, name_batch=None, random_embeddings = random_embedding, timesteps = None,)text_encoder.text_model.embeddings.forward = original_forward134 unmodified lineslabel="Prompts (each line corresponds to a frame).",info="Give simple prompt is enough to achieve good face fidelity",# placeholder="A photo of a person",value="a photo of a person\na person at the beach\na person reading a book\na person wearing a Christmas hat\n",interactive=True)choice = gr.Radio(choices=["Create a new character", "Still use this character"], label="Choose your action")
README.md+1-1
app.py+2-2