Skip to content

Commit

Permalink
latest mink update
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischoy committed Jan 14, 2020
1 parent c4140c7 commit 032f64e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions models/res16unet.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,31 +224,31 @@ def forward(self, x):
out = self.bntr4(out)
out = self.relu(out)

out = me.cat((out, out_b3p8))
out = me.cat(out, out_b3p8)
out = self.block5(out)

# pixel_dist=4
out = self.convtr5p8s2(out)
out = self.bntr5(out)
out = self.relu(out)

out = me.cat((out, out_b2p4))
out = me.cat(out, out_b2p4)
out = self.block6(out)

# pixel_dist=2
out = self.convtr6p4s2(out)
out = self.bntr6(out)
out = self.relu(out)

out = me.cat((out, out_b1p2))
out = me.cat(out, out_b1p2)
out = self.block7(out)

# pixel_dist=1
out = self.convtr7p2s2(out)
out = self.bntr7(out)
out = self.relu(out)

out = me.cat((out, out_p1))
out = me.cat(out, out_p1)
out = self.block8(out)

return self.final(out)
Expand Down
12 changes: 6 additions & 6 deletions models/resunet.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,21 +197,21 @@ def forward(self, x):
out = self.bntr4(out)
out = self.relu(out)

out = me.cat((out, out_b3p4))
out = me.cat(out, out_b3p4)
out = self.block5(out)

out = self.convtr5p4s2(out)
out = self.bntr5(out)
out = self.relu(out)

out = me.cat((out, out_b2p2))
out = me.cat(out, out_b2p2)
out = self.block6(out)

out = self.convtr6p2s2(out)
out = self.bntr6(out)
out = self.relu(out)

out = me.cat((out, out_b1p1))
out = me.cat(out, out_b1p1)
return self.final(out)


Expand Down Expand Up @@ -460,23 +460,23 @@ def forward(self, x):
out = self.bntr4(out)
out = self.relu(out)

out = me.cat((out, out_b3p4))
out = me.cat(out, out_b3p4)
out = self.block5(out)
out_5 = self.pool_tr5(out)

out = self.convtr5p4s2(out)
out = self.bntr5(out)
out = self.relu(out)

out = me.cat((out, out_b2p2))
out = me.cat(out, out_b2p2)
out = self.block6(out)
out_6 = self.pool_tr6(out)

out = self.convtr6p2s2(out)
out = self.bntr6(out)
out = self.relu(out)

out = me.cat((out, out_b1p1, out_6, out_5))
out = me.cat(out, out_b1p1, out_6, out_5)
return self.final(out)


Expand Down

0 comments on commit 032f64e

Please sign in to comment.