| | |
| | | GPU=0 |
| | | OPENCV=0 |
| | | GPU=1 |
| | | OPENCV=1 |
| | | DEBUG=0 |
| | | |
| | | ARCH= -arch=sm_52 |
| | |
| | | int dw = rand()%(l.w - l.crop_width + 1); |
| | | float scale = 2; |
| | | float trans = -1; |
| | | if(l.noadjust){ |
| | | scale = 1; |
| | | trans = 0; |
| | | } |
| | | if(!state.train){ |
| | | flip = 0; |
| | | dh = (l.h - l.crop_height)/2; |
| | |
| | | |
| | | float scale = 2; |
| | | float translate = -1; |
| | | if(layer.noadjust){ |
| | | scale = 1; |
| | | translate = 0; |
| | | } |
| | | |
| | | int size = layer.batch * layer.w * layer.h; |
| | | |
| | |
| | | int objectness; |
| | | int does_cost; |
| | | int joint; |
| | | int noadjust; |
| | | |
| | | float alpha; |
| | | float beta; |
| | |
| | | batch=params.batch; |
| | | if(!(h && w && c)) error("Layer before crop layer must output image."); |
| | | |
| | | int noadjust = option_find_int_quiet(options, "noadjust",0); |
| | | |
| | | crop_layer l = make_crop_layer(batch,h,w,c,crop_height,crop_width,flip, angle, saturation, exposure); |
| | | l.noadjust = noadjust; |
| | | return l; |
| | | } |
| | | |