avatarify-python
avatarify-python copied to clipboard
The logic of working with the GPU
please tell me in the main function cam_famm.py if I want to work using gpu then the main function is interrupted
if __name__ == "__main__":
with open('config.yaml', 'r') as f:
config = yaml.load(f, Loader=yaml.FullLoader)
global display_string
display_string = ""
IMG_SIZE = 256
log('Loading Predictor')
predictor_args = {
'config_path': opt.config,
'checkpoint_path': opt.checkpoint,
'relative': opt.relative,
'adapt_movement_scale': opt.adapt_scale,
'enc_downscale': opt.enc_downscale
}
if opt.is_worker:
from afy import predictor_worker
predictor_worker.run_worker(opt.in_port, opt.out_port)
sys.exit(0)
how , then , is the transfer of frames made ? On what part of the code
Hello , please I’m a newbie in coding, can I get a chance to talk to you , maybe on WhatsApp or something? Please
On Tue, 5 Sept 2023 at 9:21 am, Ruslan Fattakhov @.***> wrote:
please tell me in the main function cam_famm.py if I want to work using gpu then the main function is interrupted
if name == "main": with open('config.yaml', 'r') as f: config = yaml.load(f, Loader=yaml.FullLoader)
global display_string display_string = "" IMG_SIZE = 256 log('Loading Predictor') predictor_args = { 'config_path': opt.config, 'checkpoint_path': opt.checkpoint, 'relative': opt.relative, 'adapt_movement_scale': opt.adapt_scale, 'enc_downscale': opt.enc_downscale } if opt.is_worker: from afy import predictor_worker predictor_worker.run_worker(opt.in_port, opt.out_port) sys.exit(0)
how , then , is the transfer of frames made ? On what part of the code
— Reply to this email directly, view it on GitHub https://github.com/alievk/avatarify-python/issues/657, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCJZ5Y5NJIJC5XFWAF3CDA3XY3OI5ANCNFSM6AAAAAA4LMKYQI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
if I want to work using remote gpu then the main function is interrupted
Added a word to your question in order to clarify and avoid possible missunderstandings.
If you dig into the predictor_worker.run_worker function you will find that it uses multiprocessing to spawn a new process, which continues to run without the main process.
i have short cut file to run the entire program
https://youtu.be/sylE-uIhNCw?si=WQ8rsiJ2Pz1rqGwB
Full steps to install avatarify
please tell me in the main function cam_famm.py if I want to work using gpu then the main function is interrupted
if __name__ == "__main__": with open('config.yaml', 'r') as f: config = yaml.load(f, Loader=yaml.FullLoader) global display_string display_string = "" IMG_SIZE = 256 log('Loading Predictor') predictor_args = { 'config_path': opt.config, 'checkpoint_path': opt.checkpoint, 'relative': opt.relative, 'adapt_movement_scale': opt.adapt_scale, 'enc_downscale': opt.enc_downscale } if opt.is_worker: from afy import predictor_worker predictor_worker.run_worker(opt.in_port, opt.out_port) sys.exit(0)
how , then , is the transfer of frames made ? On what part of the code
https://youtu.be/_NxqtglvfI0 https://youtu.be/UnDCMPKywY8 You can talk to me here https://wa.me/message/GXQYWX4XRTXGB1 if you need further assistance at no cost
https://youtu.be/UnDCMPKywY8?feature=shared I have illustrated the easy step by step process in my youtube video. You can do it yourself or contact me for further assistance +2347081306010 Contact:whatsapp https://wa.me/message/GXQYWX4XRTXGB1