Skip to content

Commit

Permalink
Update generate_label.py
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskuestner authored Jul 12, 2021
1 parent 40bbb48 commit f5695c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion med_io/generate_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def make_class_label(label, patch_pos, patch_size):
new_label = label*-1+(patch_pos[idx][2] + patch_size[2] // 2)
class_pos = tf.where(new_label > 0)[0][-1]

one_hot = tf.one_hot(class_pos, config['body_identification_n_classes'], dtype=tf.float32)
one_hot = tf.one_hot(class_pos, len(config['name_output_channel'][config['dataset']]), dtype=tf.float32)
temp[idx]=one_hot


Expand Down

0 comments on commit f5695c0

Please sign in to comment.