Skip to content

Instantly share code, notes, and snippets.

@arunm8489
Last active June 4, 2020 02:26
Show Gist options
  • Select an option

  • Save arunm8489/df4617d0dfc3fd508696bdabf4632d4d to your computer and use it in GitHub Desktop.

Select an option

Save arunm8489/df4617d0dfc3fd508696bdabf4632d4d to your computer and use it in GitHub Desktop.
16 yolo fwd
elif module_type == 'yolo':
anchors = self.module_list[i][0].anchors
#Get the input dimensions
inp_dim = int(self.net_info["height"])
#Get the number of classes
num_classes = int(module["classes"])
#Transform
x = x.data # get the data at that point
x = self.detection_preprocess(x,inp_dim,anchors,num_classes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment