Skip to content

Commit

Permalink
beta0.9 修复了一堆存在于beta0.7和beta0.8中的恶性bug
Browse files Browse the repository at this point in the history
  • Loading branch information
littlefish12345 committed Jul 7, 2020
1 parent 7df7ebb commit 8a41306
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions sepconv-APP.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
arguments_strModel = '' #选择用哪个模型l1/lf
arguments_strPadding = '' #选择模型的处理方式paper/improved

__VERSION__ = 'beta0.8'
__VERSION__ = 'beta0.9'

kernel_Sepconv_updateOutput = '''
extern "C" __global__ void kernel_Sepconv_updateOutput(
Expand Down Expand Up @@ -378,7 +378,7 @@ def output_floder_func():
output_floder_path = askdirectory(title="请选择输出文件夹")
output_floder_path_label['text'] = output_floder_path

def render_background_func(q,input_file_path,output_floder_path,moudle_chose,cut_fps_chose,target_fps,arguments_strPadding,arguments_strModel):
def render_background_func(q,input_file_path,output_floder_path,moudle_chose,cut_fps_chose,target_fps,arguments_strPadding,arguments_strModel,multiple_chose,output_fps):
def set_process_bar_maxium(num):
q.put('process_bar_maxium')
q.put(num)
Expand Down Expand Up @@ -536,7 +536,7 @@ def set_status_bar_text(text):
def render_communicate_func():
global input_file_path,output_floder_path,moudle_chose,cut_fps_chose,target_fps,arguments_strPadding,arguments_strModel
q = multiprocessing.Queue()
p = multiprocessing.Process(target=render_background_func,args=(q,input_file_path,output_floder_path,moudle_chose,cut_fps_chose,target_fps,arguments_strPadding,arguments_strModel))
p = multiprocessing.Process(target=render_background_func,args=(q,input_file_path,output_floder_path,moudle_chose,cut_fps_chose,target_fps,arguments_strPadding,arguments_strModel,multiple_chose,output_fps))
p.start()
while True:
data = q.get(block=True)
Expand All @@ -560,6 +560,7 @@ def render_bootloader_func():
t.start()

if __name__ == '__main__':
multiprocessing.freeze_support()
print('----------sepconv-APP '+__VERSION__+'----------\n')
root = tkinter.Tk()

Expand Down
2 changes: 1 addition & 1 deletion sepconv-APP.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ a = Analysis(['sepconv-APP.py'],
pathex=['D:\\sepconv-slomo\\sepconv-APP\\temp-build'],
binaries=[],
datas=[],
hiddenimports=['fastrlock','fastrlock.rlock','cupy.core.flags','cupy.core._routines_indexing','cupy.core._dtype','cupy.core._scalar','cupy.core._ufuncs','cupy.core._routines_sorting'],
hiddenimports=['fastrlock','fastrlock.rlock','cupy.core.flags','cupy.core._routines_indexing','cupy.core._dtype','cupy.core._scalar','cupy.core._ufuncs','cupy.core._routines_sorting','pkg_resources.py2_warn'],
hookspath=[],
runtime_hooks=[],
excludes=[],
Expand Down

0 comments on commit 8a41306

Please sign in to comment.