conv = ".conv." in weightf
for i, d in enumerate(layers):
if conv and i > last_convo: break
if d["type"] == "[convolutional]":
n = d.get("filters", 1)
size = d.get("size", 1)
After Change
for i, d in enumerate(layers):
if d["type"] == "[crop]":
yield ["crop"]
if d["type"] == "[convolutional]":
n = d.get("filters", 1)