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

New correct model, gpu functionality, overfit of a single image #12

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

rzietal
Copy link

@rzietal rzietal commented Oct 26, 2020

This actually works

@DhairyaLGandhi
Copy link
Owner

DhairyaLGandhi commented Oct 26, 2020

Dup of #9?

@rzietal
Copy link
Author

rzietal commented Oct 26, 2020

Dup of #9?

Almost complete rewrite. Use what you like.

y = reshape(y, rsize..., 1, 1)
x, y

@with_kw mutable struct Dataset
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may not scale to how every dataset is stored, depending on the directory layout

return value.i
end

function target_to_onehot(target, nfeatures)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be using Flux.onehot otherwise it would be slow.

Chain(x->expand_dims(x,2),
BatchNorm(out_ch),
x->squeeze(x))
DoubleConv(in_channels, out_channels; conv_kernel = (3,3), conv_pad = (1,1)) =
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be more idiomatic to match the Flux.Conv API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants