PyHook - Python hook for ReShade processing
- dfw
- Topic Author
Less
More
3 years 1 month ago - 3 years 1 month ago #1
by dfw
PyHook - Python hook for ReShade processing was created by dfw
Hello everyone
I've created addon that exposes back buffer from ReShade to Python and after processing allows to write it back.
The main reason for this PoC is to allow AI pipeline work with ReShade exposed frame data, so user can create "real-time" (10FPS ) effects like style transfer, GAN networks etc.
Pipelines (python files that process frame data) can be organized and switched on/off in the ReShade Add-ons tab. Each pipeline exposed it's own settings that can be adjusted in real-time. I used style similar to the one ReShade provided but with some twists to support my data formats.
Future commits will be focused on performance and stability improvement.
NOTE: You need some Python knowledge to setup/build Python environment with AI support (CUDA/cuDNN) so I added some tutorials in the readme
Read more at: github.com/dwojtasik/PyHook
I've created addon that exposes back buffer from ReShade to Python and after processing allows to write it back.
The main reason for this PoC is to allow AI pipeline work with ReShade exposed frame data, so user can create "real-time" (10FPS ) effects like style transfer, GAN networks etc.
Pipelines (python files that process frame data) can be organized and switched on/off in the ReShade Add-ons tab. Each pipeline exposed it's own settings that can be adjusted in real-time. I used style similar to the one ReShade provided but with some twists to support my data formats.
Future commits will be focused on performance and stability improvement.
NOTE: You need some Python knowledge to setup/build Python environment with AI support (CUDA/cuDNN) so I added some tutorials in the readme
Read more at: github.com/dwojtasik/PyHook
Last edit: 3 years 1 month ago by dfw. Reason: Clarification.
The following user(s) said Thank You: crosire, Wicked Sick, lordbean, Faustus86, AlucardDH
Please Log in or Create an account to join the conversation.
- crosire
Less
More
3 years 1 month ago #2
by crosire
Replied by crosire on topic PyHook - Python hook for ReShade processing
This is so cool! 

The following user(s) said Thank You: dfw
Please Log in or Create an account to join the conversation.
- lordbean
Less
More
3 years 4 weeks ago #3
by lordbean
Replied by lordbean on topic PyHook - Python hook for ReShade processing
I haven't got the sort of skills required to tackle this kind of thing myself but I absolutely love the thought that ReShade injection would make AI-based post processing possible.
Please Log in or Create an account to join the conversation.
- dfw
- Topic Author
Less
More
Hello again 
I just dropped new release of PyHook.
Improved compatibility with ReShade, fixed some minor bugs and added automatic files downloader.
And added new icon :
Release: github.com/dwojtasik/PyHook/releases/tag/0.9.0
Full history: github.com/dwojtasik/PyHook#id28

I just dropped new release of PyHook.
Improved compatibility with ReShade, fixed some minor bugs and added automatic files downloader.
And added new icon :
Release: github.com/dwojtasik/PyHook/releases/tag/0.9.0
Full history: github.com/dwojtasik/PyHook#id28
The following user(s) said Thank You: YF
Please Log in or Create an account to join the conversation.
- dfw
- Topic Author
Less
More
2 years 10 months ago - 2 years 10 months ago #5
by dfw
Replied by dfw on topic PyHook - Python hook for ReShade processing
New version is available: 1.1.2
Release: github.com/dwojtasik/PyHook/releases/tag/1.1.2
Source: github.com/dwojtasik/PyHook
Focused to be more user friendly by adding GUI and manageable sessions of PyHook.
Also fixed some bugs that i found in the meanwhile.
GUI preview:
Release: github.com/dwojtasik/PyHook/releases/tag/1.1.2
Source: github.com/dwojtasik/PyHook
Focused to be more user friendly by adding GUI and manageable sessions of PyHook.
Also fixed some bugs that i found in the meanwhile.
GUI preview:
Last edit: 2 years 10 months ago by dfw. Reason: Added link to release.
Please Log in or Create an account to join the conversation.