mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
NIPS
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user