Skip to content

[Question] After train, how to test our own environment? #306

Open
@zhou-ting-hub

Description

Required prerequisites

Questions

Thank you for your work. After I successfully run the following train code

cd examples
python train_policy.py --algo CPO --env Custom0-v0

how to test next?

Method1:

image
we modified to omnisafe eval ./examples/runs/CPO-{Custom0-v0}

Method2: run the file ./examples/evaluate_saved_policy.py

LOG_DIR = /examples/runs/CPO-{Custom0-v0}/seed-000-2024-02-29-23-33-21

So which is right or how do is right to test the trained model, what is the difference between Method1 and Method2? Is the trained model saved in examples/runs/CPO-{Custom0-v0}/seed-000-2024-02-29-23-33-21? Thank you~

image

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions