-
Notifications
You must be signed in to change notification settings - Fork 11
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
high-resolution images & a 2d discrete variational factor #1068
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1068 +/- ##
==========================================
- Coverage 81.25% 76.40% -4.86%
==========================================
Files 23 22 -1
Lines 3051 3085 +34
==========================================
- Hits 2479 2357 -122
- Misses 572 728 +156
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
"galaxy_params": galaxy_params, | ||
"star_fluxes": star_fluxes, | ||
} | ||
catalog_params["shear"] = shear |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shreyasc30 @timwhite0 The function _sample_galaxy_prior()
no longer returns fluxes. I updated this code to account for the change but couldn't test it, so there may be minor syntax errors here.
ConvBlock(nch_hidden, 64, kernel_size=5, padding=2), | ||
nn.Sequential(*[ConvBlock(64, 64, kernel_size=5, padding=2) for _ in range(1)]), | ||
ConvBlock(nch_hidden, 64, kernel_size=5), | ||
nn.Sequential(*[ConvBlock(64, 64, kernel_size=5) for _ in range(1)]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shreyasc30 @timwhite0 The appropriate padding gets determined automatically now by ConvBlock
, so padding
is no longer an available argument.
tile_slen=self.tile_slen, | ||
downsample_at_front=self.downsample_at_front, | ||
) | ||
n_params_per_source = self.var_dist.n_params_per_source | ||
self.catalog_net = CatalogNet(num_features, n_params_per_source) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kapnadak @gapatron CatalogNet
is no longer around. To account for this, I adjusted your code by removing its references to CatalogNet
and by making the output of your GalaxyClusterFeaturesNet
have the right output dimension to be used directly to parameterize the variational distribution. I haven't tested these changes though: some additional modifications may be needed.
|
||
|
||
def generate_one_file(gen_cfg: DictConfig, file_idx: int): | ||
prior = instantiate(gen_cfg.prior) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nn.Upsample(scale_factor=2, mode="nearest"), # 8 | ||
C3(512, 256, n=3, shortcut=False), | ||
nn.Upsample(scale_factor=2, mode="nearest"), # 10 | ||
C3(384, num_features, n=3, shortcut=False), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@YicunDuanUMich @georgeyfly This new network architecture works quite a bit better for me (on SDSS, I haven't tried in on DC2). Will you try it out too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's nice to hear. I am glad to have a try on DC2 to see if it works better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'll try it.
Assorted changes:
CatalogNet
.