@@ -501,20 +501,8 @@ def _get_batch(self, nodes, img, offset):
501501 batch = np .empty ((len (nodes ), 2 ,) + self .patch_shape )
502502 for i , center in enumerate (patch_centers ):
503503 s = img_util .get_slices (center , self .patch_shape )
504- < << << << HEAD
505504 batch [i , 0 , ...] = img_util .normalize (img [s ])
506505 batch [i , 1 , ...] = label_mask [s ]
507- == == == =
508- try :
509- batch [i , 0 , ...] = img [s ]
510- batch [i , 1 , ...] = label_mask [s ]
511- except :
512- print ("center:" , center )
513- print ("img.shape:" , img .shape )
514- print ("\n offset:" , offset )
515- print ("patch_centers:" , patch_centers )
516- stop
517- >> >> >> > 6 c98e4d1a99e00129c798e43efaf78a9563a4de7
518506 return nodes , torch .tensor (batch , dtype = torch .float )
519507
520508 def _get_multimodal_batch (self , nodes , img , offset ):
@@ -527,11 +515,7 @@ def _get_multimodal_batch(self, nodes, img, offset):
527515 point_clouds = np .empty ((len (nodes ), 3 , 3600 ), dtype = np .float32 )
528516 for i , (node , center ) in enumerate (zip (nodes , patch_centers )):
529517 s = img_util .get_slices (center , self .patch_shape )
530- < << << << HEAD
531518 patches [i , 0 , ...] = img_util .normalize (img [s ])
532- == == == =
533- patches [i , 0 , ...] = img [s ]
534- >> >> >> > 6 c98e4d1a99e00129c798e43efaf78a9563a4de7
535519 patches [i , 1 , ...] = label_mask [s ]
536520
537521 subgraph = self .graph .get_rooted_subgraph (
0 commit comments