Skip to content

Commit

Permalink
Fix section fisher default size when descriptor fails (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit Kumar authored and ylogx committed Aug 10, 2017
1 parent 435162e commit d34a72c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aesthetics/fisher/fisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def fisher_vector_of_img_array(self, img):

def section_fisher(img_section, full_fisher):
sec_fisher = self.fisher_vector_of_image_section(img_section)
if sec_fisher is None:
if sec_fisher.shape == (0,):
sec_fisher = np.zeros(full_fisher.shape)
return sec_fisher

Expand Down

0 comments on commit d34a72c

Please sign in to comment.