Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] AttentionRefine BUG & Add assets & TYPO in prompt-to-prompt project #2012

Merged
merged 8 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
liuwenran marked this conversation as resolved.
Show resolved Hide resolved
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions projects/prompt_to_prompt/models/seq_aligner.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ def mis_match_char(self, x, y):

def get_matrix(size_x, size_y, gap):
matrix = []
for i in range(len(size_x) + 1):
for i in range(size_x + 1):
sub_matrix = []
for j in range(len(size_y) + 1):
for j in range(size_y + 1):
sub_matrix.append(0)
matrix.append(sub_matrix)
for j in range(1, len(size_y) + 1):
for j in range(1, size_y + 1):
matrix[0][j] = j * gap
for i in range(1, len(size_x) + 1):
for i in range(1, size_x + 1):
matrix[i][0] = i * gap
return matrix
return np.array(matrix)


# def get_matrix(size_x, size_y, gap):
Expand Down
3 changes: 2 additions & 1 deletion projects/prompt_to_prompt/visualize.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"#### 1. VAE reconstruction as the a standard result\n"
"#### 1. VAE reconstruction as the standard result\n"
]
},
{
Expand Down
Loading