diff --git a/run_parallel.py b/run_parallel.py new file mode 100644 index 0000000..5c63417 --- /dev/null +++ b/run_parallel.py @@ -0,0 +1,20 @@ +import os + + + +if __name__ == '__main__': + + folder = '/home/workspace/data/dataset/train' + # folder = '/home/workspace/data/dataset/train_100' + ids = os.listdir(folder)#[:800] + skirt = 0 + + count = 0 + step = 75 + + # !!!!!!! change skirt parameter in script + + while count < len(ids): + os.system('nohup python convert_to_uv.py -f ' + folder + ' -s ' + str(count) + ' -e ' + str(count + step) + ' -n ' + 'to_uv_unposed_no_shape_' + str(count) + '_' + str(count+step) + ' > nohup/to_uv_unposed_no_shape_' + str(count) + '_' + str(count+step) + '.out' + ' 2>&1 &') + # os.system('python Data/convert_to_uv.py -f ' + folder + ' -s ' + str(count) + ' -e ' + str(count + step) + '') + count += step