This commit is contained in:
Joseph Redmon
2015-06-10 00:11:41 -07:00
parent 7fe80a2bb5
commit cbc9984a17
21 changed files with 7440 additions and 770 deletions

View File

@@ -227,6 +227,15 @@ image get_convolutional_filter(convolutional_layer l, int i)
return float_to_image(w,h,c,l.filters+i*h*w*c);
}
void rgbgr_filters(convolutional_layer l)
{
int i;
for(i = 0; i < l.n; ++i){
image im = get_convolutional_filter(l, i);
if (im.c == 3) rgbgr_image(im);
}
}
image *get_filters(convolutional_layer l)
{
image *filters = calloc(l.n, sizeof(image));