Skip to content

Commit

Permalink
default pass
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoorlab committed Aug 22, 2023
1 parent 412033a commit fb6045c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/oneat/NEATModels/neat_densevollnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ def predict(self,
print(f'zero padded image shape ${self.image.shape}')
self.second_pass_predict()
if self.remove_markers == None:
self.pad_width = (self.config['imagey'], self.config['imagex'])
self.image = np.zeros([self.originalimage.shape[0], self.originalimage.shape[1], self.originalimage.shape[2] + self.pad_width[0], self.originalimage.shape[3] + self.pad_width[1] ])
self.pad_width = (self.config['imagey'], self.config['imagex'])
for i in range(self.originalimage.shape[0]):
self.image[i,:] = pad_timelapse(self.originalimage[i,:], self.pad_width)
self.default_pass_predict()
Expand Down
3 changes: 2 additions & 1 deletion src/oneat/NEATModels/neat_vollnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,9 @@ def predict(self,
print(f'zero padded image shape ${self.image.shape}')
self.second_pass_predict()
if self.remove_markers == None:
self.pad_width = (self.config['imagey'], self.config['imagex'])
self.image = np.zeros([self.originalimage.shape[0], self.originalimage.shape[1], self.originalimage.shape[2] + self.pad_width[0], self.originalimage.shape[3] + self.pad_width[1] ])
self.pad_width = (self.config['imagey'], self.config['imagex'])

for i in range(self.originalimage.shape[0]):
self.image[i,:] = pad_timelapse(self.originalimage[i,:], self.pad_width)
self.image = self.originalimage
Expand Down

0 comments on commit fb6045c

Please sign in to comment.