Upload 2 files
Browse files- checkpoints/.DS_Store +0 -0
- checkpoints/nothing.py +10 -0
checkpoints/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
checkpoints/nothing.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
with open('train_sim.txt', 'r', encoding='utf-8') as f:
|
| 2 |
+
lines = f.readlines()
|
| 3 |
+
|
| 4 |
+
with open('train_img_sim.txt', 'w', encoding='utf-8') as f:
|
| 5 |
+
for line in lines:
|
| 6 |
+
# 移除换行符并处理字符串
|
| 7 |
+
new_line = line.strip().replace('videos/', 'first_frames/').replace('.mp4', '.png')
|
| 8 |
+
f.write(new_line + '\n')
|
| 9 |
+
|
| 10 |
+
print("转换完成。")
|