浏览代码

Modified meta_curriculum JSON reading loop to only deal with .json (#2651)

* Modified meta_curriculum JSON reading loop

* Switched quote styling

* Removed whitespace
/develop-gpu-test
Chris Elion 5 年前
当前提交
aa7cbaf7
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
      ml-agents/mlagents/trainers/meta_curriculum.py

3
ml-agents/mlagents/trainers/meta_curriculum.py


try:
for curriculum_filename in os.listdir(curriculum_folder):
# This process requires JSON files
if not curriculum_filename.lower().endswith(".json"):
continue
brain_name = curriculum_filename.split(".")[0]
curriculum_filepath = os.path.join(
curriculum_folder, curriculum_filename

正在加载...
取消
保存