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 some small things #18

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion configs/models/cc12m_256x256.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ unet_config:
conditioning_feature_dim: -1
conditioning_feature_proj_dim: -1
freeze_inner_unet: false
initialize_inner_with_pretrained: None
initialize_inner_with_pretrained: null
tolgacangoz marked this conversation as resolved.
Show resolved Hide resolved
inner_config:
attention_levels: [1, 2]
conditioning_feature_dim: -1
Expand Down
4 changes: 2 additions & 2 deletions ml_mdm/clis/generate_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def generate(
prompt = input_template.format(prompt=prompt)
if len(negative_template) > 0:
negative_prompt = negative_prompt + negative_template
print(f"Postive: {prompt} / Negative: {negative_prompt}")
print(f"Positive: {prompt} / Negative: {negative_prompt}")

if not os.path.exists(ckpt_name):
logging.info(f"Did not generate because {ckpt_name} does not exist")
Expand Down Expand Up @@ -478,7 +478,7 @@ def main(args):

with gr.Column(scale=2):
with gr.Accordion(
"Addditional outputs", open=False, elem_id="output-accordion"
"Additional outputs", open=False, elem_id="output-accordion"
):
with gr.Row(equal_height=True):
output_text = gr.Textbox(value=None, label="System output")
Expand Down
3 changes: 3 additions & 0 deletions ml_mdm/models/nested_unet.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ class Nested4UNetConfig(Nested3UNetConfig):


def download(vision_model_path):
from ml_mdm.utils import fix_old_checkpoints
fix_old_checkpoints.mimic_old_modules()
tolgacangoz marked this conversation as resolved.
Show resolved Hide resolved

import os

from distributed import get_local_rank
Expand Down