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

[Question] How to load models on Python3.8? #589

Closed
2 tasks done
MaximilienLC opened this issue Sep 29, 2021 · 3 comments
Closed
2 tasks done

[Question] How to load models on Python3.8? #589

MaximilienLC opened this issue Sep 29, 2021 · 3 comments
Labels
question Further information is requested

Comments

@MaximilienLC
Copy link

MaximilienLC commented Sep 29, 2021

Important Note: We do not do technical support, nor consulting and don't answer personal questions per email.
Please post your question on the RL Discord, Reddit or Stack Overflow in that case.

Question

In relation to #172 and #403 how may I circumvent the Assertion Error to load models on python 3.8?

Checklist

  • I have read the documentation (required)
  • I have checked that there is no similar issue in the repo (required)
@MaximilienLC MaximilienLC added the question Further information is requested label Sep 29, 2021
@araffin
Copy link
Member

araffin commented Sep 29, 2021

Hello,
i assume you are talking about models saved with another python version?
do you want to just load them or continue training too?
for both, you need to pass custom objects, you can find an example in the enjoy script of the rl zoo (linked in issue #172 )

@araffin
Copy link
Member

araffin commented Sep 29, 2021

a concrete example: https://github.com/DLR-RM/rl-baselines3-zoo/blob/75afd65fa4a1f66814777d43bd14e4bba18d96db/enjoy.py#L171

@MaximilienLC
Copy link
Author

Yeah that fixes it thanks.

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

No branches or pull requests

2 participants