Skip to content

Commit

Permalink
indicate when len(mask)==0
Browse files Browse the repository at this point in the history
Former-commit-id: 9ab2ab9ea9ee3d42e1d571d01051ce87821b9775
  • Loading branch information
Javi Ribera committed Mar 7, 2018
1 parent d5264bc commit d6a9b15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plant-locator/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@
if len(c) == 0:
ahd = criterion_training.max_dist
centroids = []
print('len(c) == 0')
else:
n_components = int(torch.round(est_count).data.cpu().numpy()[0])
# If the estimation is horrible, we cannot fit a GMM if n_components > n_samples
Expand Down

0 comments on commit d6a9b15

Please sign in to comment.