I have some issues with debugging. The flexsim_env.py works but not the flexisim_training.py file. Able to help?
I have some issues with debugging. The flexsim_env.py works but not the flexisim_training.py file. Able to help?
Hey @James, at the top of your image, it says that you're using an Open AI Gym environment. The Stable-baselines3 package has moved towards using Gymnaisum instead. You'll have to change over the code in the provided example to be based around a gymnasium environment. Here's an example file you could try:
There are a few main differences, such as the reset and step functions:
In the flexsim_training.py, you'll need to update the variables that get created/updated by those functions:
Let me know if this fixes your problem or if there are other things you run into.
I can training model but that can't save
flexsim_training file I can run the program. But cannot save the model " Saving model...
Waiting for input to do some test runs..." How do I fix this? Basically, I fixed import gymnasium instead.
#import gym
@Lion , if you're getting errors, then show me screenshots of the errors. All I see in your screenshots are rewritten code and terminals showing proof it's running.
When it says "Waiting for input to do some test runs...", that's when it's waiting for you to hit "Enter" or some other keyboard input in the terminal to notify the program that you're ready to do test runs.
This is the running result and Error display.
16 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved