Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/changyeyu/LLM-RL-Visualized
/ functions
Functions
6 in github.com/changyeyu/LLM-RL-Visualized
⨍
Functions
6
◇
Types & classes
0
↓ 1 callers
Function
add_column_to_excel
Function 1: Add a third column to Excel files. For each Excel file ("src/conf/info-ch.xlsx" and "src/conf/info-en.xlsx"), this function reads
src/rename_images.py:6
↓ 1 callers
Function
copy_tmp_to_source
Copies files from tmp_dir back to input_dir (overwriting original files).
src/clip_images.py:48
↓ 1 callers
Function
main
()
src/rename_images.py:119
↓ 1 callers
Function
process_directory
Recursively traverses the input_dir, processes all PNG images, and saves the processed images to the tmp_dir preserving the relative path.
src/clip_images.py:30
↓ 1 callers
Function
rename_images
Function 2: Rename image files. For the directory "images_chinese" and all its subdirectories: - Use the third column of the Excel file
src/rename_images.py:39
↓ 1 callers
Function
trim_whitespace
Opens an image, trims the whitespace by comparing with a white background, adds the specified padding to the cropped region, and saves the re
src/clip_images.py:5