byeongjun-park commited on
Commit
01a5b8c
1 Parent(s): f679b0c

HarmonyView update

Browse files
.idea/workspace.xml CHANGED
@@ -4,9 +4,8 @@
4
  <option name="autoReloadType" value="SELECTIVE" />
5
  </component>
6
  <component name="ChangeListManager">
7
- <list default="true" id="a993d736-6297-4164-9c29-6b2ab1055a96" name="변경" comment="change title">
8
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/app.py" beforeDir="false" afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
10
  <change beforePath="$PROJECT_DIR$/ldm/models/diffusion/sync_dreamer.py" beforeDir="false" afterPath="$PROJECT_DIR$/ldm/models/diffusion/sync_dreamer.py" afterDir="false" />
11
  </list>
12
  <option name="SHOW_DIALOG" value="false" />
@@ -34,7 +33,7 @@
34
  "RunOnceActivity.OpenProjectViewOnStart": "true",
35
  "RunOnceActivity.ShowReadmeOnStart": "true",
36
  "git-widget-placeholder": "main",
37
- "last_opened_file_path": "/home/byeongjun/PycharmProjects/cvpr2024"
38
  }
39
  }]]></component>
40
  <component name="RecentsManager">
@@ -115,7 +114,23 @@
115
  <option name="project" value="LOCAL" />
116
  <updated>1703070569206</updated>
117
  </task>
118
- <option name="localTasksCounter" value="8" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  <servers />
120
  </component>
121
  <component name="Vcs.Log.Tabs.Properties">
@@ -133,6 +148,7 @@
133
  <MESSAGE value="error resolve" />
134
  <MESSAGE value="add example code" />
135
  <MESSAGE value="change title" />
136
- <option name="LAST_COMMIT_MESSAGE" value="change title" />
 
137
  </component>
138
  </project>
 
4
  <option name="autoReloadType" value="SELECTIVE" />
5
  </component>
6
  <component name="ChangeListManager">
7
+ <list default="true" id="a993d736-6297-4164-9c29-6b2ab1055a96" name="변경" comment="HarmonyView update">
8
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
 
9
  <change beforePath="$PROJECT_DIR$/ldm/models/diffusion/sync_dreamer.py" beforeDir="false" afterPath="$PROJECT_DIR$/ldm/models/diffusion/sync_dreamer.py" afterDir="false" />
10
  </list>
11
  <option name="SHOW_DIALOG" value="false" />
 
33
  "RunOnceActivity.OpenProjectViewOnStart": "true",
34
  "RunOnceActivity.ShowReadmeOnStart": "true",
35
  "git-widget-placeholder": "main",
36
+ "last_opened_file_path": "/home/byeongjun/SyncDreamer"
37
  }
38
  }]]></component>
39
  <component name="RecentsManager">
 
114
  <option name="project" value="LOCAL" />
115
  <updated>1703070569206</updated>
116
  </task>
117
+ <task id="LOCAL-00008" summary="HarmonyView update">
118
+ <option name="closed" value="true" />
119
+ <created>1703130677065</created>
120
+ <option name="number" value="00008" />
121
+ <option name="presentableId" value="LOCAL-00008" />
122
+ <option name="project" value="LOCAL" />
123
+ <updated>1703130677065</updated>
124
+ </task>
125
+ <task id="LOCAL-00009" summary="HarmonyView update">
126
+ <option name="closed" value="true" />
127
+ <created>1703131488938</created>
128
+ <option name="number" value="00009" />
129
+ <option name="presentableId" value="LOCAL-00009" />
130
+ <option name="project" value="LOCAL" />
131
+ <updated>1703131488938</updated>
132
+ </task>
133
+ <option name="localTasksCounter" value="10" />
134
  <servers />
135
  </component>
136
  <component name="Vcs.Log.Tabs.Properties">
 
148
  <MESSAGE value="error resolve" />
149
  <MESSAGE value="add example code" />
150
  <MESSAGE value="change title" />
151
+ <MESSAGE value="HarmonyView update" />
152
+ <option name="LAST_COMMIT_MESSAGE" value="HarmonyView update" />
153
  </component>
154
  </project>
ldm/models/diffusion/sync_dreamer.py CHANGED
@@ -468,7 +468,7 @@ class SyncMultiviewDiffusion(pl.LightningModule):
468
  x_noisy = sqrt_alphas_cumprod_ * x_start + sqrt_one_minus_alphas_cumprod_ * noise
469
  return x_noisy, noise
470
 
471
- def sample(self, sampler, batch, cfg_scale_1, cfg_scale_2, batch_view_num, return_inter_results=False, inter_interval=50, inter_view_interval=2):
472
  _, clip_embed, input_info = self.prepare(batch)
473
  x_sample, inter = sampler.sample(input_info, clip_embed, unconditional_scale=cfg_scale, log_every_t=inter_interval, batch_view_num=batch_view_num)
474
 
@@ -626,7 +626,7 @@ class SyncDDIMSampler:
626
  return x_prev
627
 
628
  @torch.no_grad()
629
- def sample(self, input_info, clip_embed, unconditional_scale=1.0, log_every_t=50, batch_view_num=1):
630
  """
631
  @param input_info: x, elevation
632
  @param clip_embed: B,M,768
 
468
  x_noisy = sqrt_alphas_cumprod_ * x_start + sqrt_one_minus_alphas_cumprod_ * noise
469
  return x_noisy, noise
470
 
471
+ def sample(self, sampler, batch, cfg_scale, batch_view_num, return_inter_results=False, inter_interval=50, inter_view_interval=2):
472
  _, clip_embed, input_info = self.prepare(batch)
473
  x_sample, inter = sampler.sample(input_info, clip_embed, unconditional_scale=cfg_scale, log_every_t=inter_interval, batch_view_num=batch_view_num)
474
 
 
626
  return x_prev
627
 
628
  @torch.no_grad()
629
+ def sample(self, input_info, clip_embed, unconditional_scale, log_every_t=50, batch_view_num=1):
630
  """
631
  @param input_info: x, elevation
632
  @param clip_embed: B,M,768