cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
test_median_blur_images_ray.py File Reference

Go to the source code of this file.

Namespaces

 test_median_blur_images_ray
 

Functions

def test_median_blur_images_ray.consumer (accel_mode, fpgas_queue, frames, i, debug_level=debug_level)
 
def test_median_blur_images_ray.mega_work (accel_mode, fpgas_queue, frames, debug_level, start, end)
 
def test_median_blur_images_ray.flatten (input)
 

Variables

bool test_median_blur_images_ray.accel_mode = False
 
 test_median_blur_images_ray.debug_level = logging.DEBUG
 
 test_median_blur_images_ray.stream
 
 test_median_blur_images_ray.stdout
 
 test_median_blur_images_ray.level
 
int test_median_blur_images_ray.width = 3840
 
int test_median_blur_images_ray.height = 2160
 
int test_median_blur_images_ray.total_size = height * width
 
int test_median_blur_images_ray.DATASET_SIZE = 50
 
int test_median_blur_images_ray.split = 1
 
int test_median_blur_images_ray.REPEATS = 1
 
 test_median_blur_images_ray.address
 
 test_median_blur_images_ray.fpgas_queue = Queue(maxsize=100)
 
 test_median_blur_images_ray.tic_capture = time.perf_counter()
 
list test_median_blur_images_ray.frames = []
 
list test_median_blur_images_ray.frames_ret = []
 
 test_median_blur_images_ray.frame = cv.imread(cv.samples.findFile("CARLA.jpg"))
 
 test_median_blur_images_ray.toc_capture = time.perf_counter()
 
list test_median_blur_images_ray.elapsed_times = []
 
 test_median_blur_images_ray.start_time = time.time()
 
 test_median_blur_images_ray.tic_consumers = time.perf_counter()
 
 test_median_blur_images_ray.frames_id = ray.put(frames)
 
 test_median_blur_images_ray.fpgas_queue_id = ray.put(fpgas_queue)
 
list test_median_blur_images_ray.consumers = [mega_work.remote(accel_mode, fpgas_queue_id, frames_id, debug_level, i*split, (i+1)*split) for i in range(int(len(frames)/split))]
 
 test_median_blur_images_ray.toc_consumers = time.perf_counter()
 
 test_median_blur_images_ray.tic_exec = time.perf_counter()
 
 test_median_blur_images_ray.results = ray.get(consumers)
 
 test_median_blur_images_ray.toc_exec = time.perf_counter()
 
 test_median_blur_images_ray.end_time = time.time()
 
 test_median_blur_images_ray.tic_save = time.perf_counter()
 
string test_median_blur_images_ray.image_name = "CARLA_out_"+str(t)+".jpg"
 
 test_median_blur_images_ray.toc_save = time.perf_counter()
 
int test_median_blur_images_ray.average_elapsed_time = sum(elapsed_times) / REPEATS