submit code

This commit is contained in:
wangshuai6
2025-04-09 11:01:16 +08:00
parent 4fbcf9bd87
commit 06499f1caa
145 changed files with 14400 additions and 0 deletions

21
tools/fm_images.py Normal file
View File

@@ -0,0 +1,21 @@
IMG_EXTENSIONS = (
"*.png",
"*.JPEG",
"*.jpeg",
"*.jpg"
)
PATH = "/mnt/bn/wangshuai6/neural_sampling_workdirs/expbaseline_adam2_timeshift1.5"
import os
import pathlib
PATH = pathlib.Path(PATH)
images = []
# find images
for ext in IMG_EXTENSIONS:
images.extend(PATH.rglob(ext))
for image in images:
os.system(f"rm -f {image}")