quantumiracle-git commited on
Commit
b48ceb9
·
1 Parent(s): 0d23a6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -155,6 +155,8 @@ def parse_envs(folder=VIDEO_PATH, filter=True, MAX_ITER=20000, DEFAULT_ITER=2000
155
  for video in videos: # video name rule: EnvName_Alg_Seed_Timestamp_Checkpoint_video-episode_EpisodeID
156
  if video.endswith(f'.{FORMAT}'):
157
  if filter:
 
 
158
  seed = video.split('_')[2]
159
  checkpoint = video.split('_')[4]
160
  try:
 
155
  for video in videos: # video name rule: EnvName_Alg_Seed_Timestamp_Checkpoint_video-episode_EpisodeID
156
  if video.endswith(f'.{FORMAT}'):
157
  if filter:
158
+ if len(video.split('_')) < 7:
159
+ print(f'{video} is wrongly named.')
160
  seed = video.split('_')[2]
161
  checkpoint = video.split('_')[4]
162
  try: