hey im trying to speed up my code by using multiprocessing pool and in theory this:
def render_frame(i):
#os.system(f'python main.py video_imgs/out{i}.png {convo}')
print(f'done {i}')
if __name__ == '__main__':
pic_list = list(range(1,num_of_pics))
with Pool(10) as p:
s = p.map(render_frame,pic_list)
should print done then the number i, but when I run the script it just gives me the input prompt I have at the beginning of the script 10 times, which is ->
from multiprocessing import Pool
import sys
import os
import time
if(len(sys.argv) > 1):
vidLoc = sys.argv[1]
convo = sys.argv[2]
else:
vidLoc = input('video: ') #! <-- this is being repeated 10 times
convo = input('convolute cfg file: ')
any help? thanks
#os.system(f'python main.py video_imgs/out{i}.png {convo}')<- what is{convo}in this?