{'fraction_non_alphanumeric': 0.013333333333333334, 'fraction_numerical': 0.0, 'mean_word_length': 4.98936170212766, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Graph cut-based fast texture synthesis with CUDA

This paper presents a graph cut-based fast texture synthesis algorithm which utilizes CUDA to greatly accelerate the synthesis speed. The whole sample serves as a patch and is laid into the synthesized image repeatedly to build the final texture, and graph cut is used to determine the optimal patch boundaries. To speed up the synthesis speed, the patch locations are only selected based on a small set, which consists of some optimal relative offsets between two patches and is constructed in the preprocessing step. The matching errors during patch selection are also estimated without much computation from the information provided by this step. The graph cut algorithm is implemented every time a patch is laid, resulting in its becoming the bottleneck of the synthesis process. This problem is solved by virtue of the CUDA implementation of the maxflow/mincut algorithm. Graph construction and the preprocessing step are also accelerated with CUDA. The speed of the synthesis is several to dozens of times faster than the traditional algorithm without GPU acceleration.