blob.rdn = 1 blob.rng = 1 blob.f_root_a = 0 deep_layers[i] = intra_blob(blob, render=args.render, verbose=args.verbose) # dert__ comp_r in 3x3 kernels if deep_layers[i]: # if there are deeper layers deep_blob_i_.append(i) # indices of blobs with deep layers if args.verbose: print_deep_blob_forking(deep_layers) print("\rFinished intra_blob") bblob_ = cross_comp_blobs(frame) end_time = time() - start_time if args.verbose: print(f"\nSession ended in {end_time:.2} seconds", end="") else: print(end_time) ''' Test fopen: if args.verbose: for i, blob in enumerate(frame.blob_): # simple check on correctness of fopen # if fopen, y0 = 0, or x0 = 0, or yn = frame's y size or xn = frame's x size if blob.box[0] == 0 or blob.box[2] == 0 or blob.box[1] == blob.root_dert__[0].shape[0] or blob.box[3] == blob.root_dert__[0].shape[1]: if not blob.fopen: # fopen should be true when blob touches the frame boundaries
blob.rdn = 1 blob.rng = 1 blob.f_root_a = 0 deep_layers[i] = intra_blob(blob, render=args.render, verbose=args.verbose) # dert__ comp_r in 3x3 kernels if deep_layers[i]: # if there are deeper layers deep_blob_i_.append(i) # indices of blobs with deep layers if args.verbose: print_deep_blob_forking(deep_layers) print("\rFinished intra_blob") cross_comp_blobs(frame.blob_) end_time = time() - start_time if args.verbose: print(f"\nSession ended in {end_time:.2} seconds", end="") else: print(end_time) ''' Test fopen: if args.verbose: for i, blob in enumerate(frame.blob_): # simple check on correctness of fopen # if fopen, y0 = 0, or x0 = 0, or yn = frame's y size or xn = frame's x size if blob.box[0] == 0 or blob.box[2] == 0 or blob.box[1] == blob.root_dert__[0].shape[0] or blob.box[3] == blob.root_dert__[0].shape[1]: if not blob.fopen: # fopen should be true when blob touches the frame boundaries