Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running of Code to create GIF #27

Open
karthik7194 opened this issue Dec 17, 2021 · 2 comments
Open

Running of Code to create GIF #27

karthik7194 opened this issue Dec 17, 2021 · 2 comments
Assignees

Comments

@karthik7194
Copy link

Hi,
Thanks for your Awesome work. Very interesting
Can you please explain in short how do you run this entire program? I am quite new to Reinforcement learning. I can see there are 2 set of files: One Specifically for the environment and the other for the RL algorithm. I use Ubuntu 18.04 so I feel there will not be any additional requirements to be installed.
Waiting to hear from you.

@smita-09
Copy link

smita-09 commented Mar 4, 2022

Hello Karthik!
Did you figure out how to run it?
I ran it but I am getting errors about registering the environment.
About your question about how to run:
You just need to run python3 main.py inside JSS folder. About environment, since a package is already mentioned in the requirements.txt to install for the environment so there is nothing you need to do for that.

@ingambe
Copy link
Collaborator

ingambe commented Mar 5, 2022

Hi @karthik7194,

First of all, sorry for the late answer :(

This project is a simple training approach using PPO to train an agent on the Job-Shop Scheduling Environment we have developed.
If you run the main file while having previously set up the configuration dictionary correctly (i.e., the path to the file containing the instance you want to solve and other hyperparameters). It will train an agent to solve the given instance and report the best solution found using Weights and Biases.

The GIF generation in itself is nothing very specific to RL. The full code to generate a GIF is available here: https://github.com/prosysscience/JSSEnv/blob/master/tests/test_rendering.py

You can replace the file with your given instance, provide the agent's solution, and generate a GIF.

I hope it helps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants