Last active
June 4, 2020 02:26
-
-
Save arunm8489/df4617d0dfc3fd508696bdabf4632d4d to your computer and use it in GitHub Desktop.
16 yolo fwd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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