Skip to content

Instantly share code, notes, and snippets.

@arunm8489
Created June 4, 2020 05:50
Show Gist options
  • Save arunm8489/a37677841bbf6333961b31c167b0fa8c to your computer and use it in GitHub Desktop.
Save arunm8489/a37677841bbf6333961b31c167b0fa8c to your computer and use it in GitHub Desktop.
for i in range(len(self.module_list)):
module_type = self.blocks[i + 1]["type"]
if module_type == "convolutional":
model = self.module_list[i]
try:
batch_normalize = int(self.blocks[i+1]["batch_normalize"])
except:
batch_normalize = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment