Custom Preprocessors

i add my code in file .custom_preprocessor/MyPreprocessorClass.py ,but it did not work.
i find a sample such as:


but where to set the config in REAL2020_starter_kit?
thanks!

Hello @smileroom

You can place the code for your preprocessor at https://github.com/AIcrowd/neurips2020-procgen-starter-kit/blob/master/preprocessors/ and add the newly added custom preprocessor to the list of available preprocessors at https://github.com/AIcrowd/neurips2020-procgen-starter-kit/blob/master/preprocessors/__init__.py.

Then you should add it to the experiment YAML file, for example,

I hope the last part is what you were looking for.

yes! it is what i am looking for.
thank you!

1 Like

Hello jyotish, I added my preprocessor as the way you said but I got an error:
ValueError: Registry value for rllib_preprocessor/rllib_preprocessor/MyPreprocessor doesn’t exist.
How can I solve this problem?

Hello @DRL_AGI

Did you import and add it to custom preprocessors dict here?