n00mkrad / flowframes

Flowframes Windows GUI for video interpolation using DAIN (NCNN) or RIFE (CUDA/NCNN)
GNU General Public License v3.0
1.54k stars 117 forks source link

PYTHON ERROR OCCURED #305

Closed n3nuzzzz closed 8 months ago

n3nuzzzz commented 8 months ago
Screenshot 2024-03-03 alle 19 30 09 1

This error occur everytime I try to interpolate a video. This is the log:

[133] [3-3-2024 19:25:19]: [UI] Loading metadata... [136] [3-3-2024 19:25:20]: Getting frame count (C:\Users\elena\Downloads\Pre-comp 16.mov) [137] [3-3-2024 19:25:20]: Hash not cached, reading frame count. [141] [3-3-2024 19:25:21]: Adding hash with value 14 to cache. [144] [3-3-2024 19:25:21]: Getting output for cmd.exe /C cd /D "C:\Users\elena\AppData\Local\Flowframes\FlowframesData\pkgs\av" & ffprobe -v quiet -show_streams "C:\Users\elena\Downloads\Pre-comp 16.mov" [145] [3-3-2024 19:25:21]: Output (after 247ms): [STREAM] / index=0 / codec_name=prores / codec_long_name=Apple ProRes (iCodec Pro) / profile=4444 / codec_type=video / codec_tag_string=ap4h / codec_tag=0x68347061 / width=1300 / height=1080 / coded_width=1300 / coded_height=1080 / closed_captions=0 … [148] [3-3-2024 19:25:21]: Getting output for cmd.exe /C cd /D "C:\Users\elena\AppData\Local\Flowframes\FlowframesData\pkgs\av" & ffmpeg.exe -hide_banner -y -stats -i "C:\Users\elena\Downloads\Pre-comp 16.mov" [149] [3-3-2024 19:25:21]: Output (after 259ms): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\elena\Downloads\Pre-comp 16.mov': / Metadata: / major_brand : qt / minor_version : 537199360 / compatible_brands: qt / creation_time : 2024-02-22T13:04:12.000000Z / Dur… [151] [3-3-2024 19:25:21]: Converted float 60 to Fraction 60/1 [152] [3-3-2024 19:25:21]: Detected FPS of Pre-comp 16.mov as 60/1 FPS [153] [3-3-2024 19:25:21]: [UI] [REPL] Video FPS: 60/1 (~60) - Total Number Of Frames: 14 [154] [3-3-2024 19:25:21]: Getting media resolution (C:\Users\elena\Downloads\Pre-comp 16.mov) [155] [3-3-2024 19:25:21]: Hash not cached, reading resolution. [158] [3-3-2024 19:25:22]: Detected video size of Pre-comp 16.mov as 1300x1080 [159] [3-3-2024 19:25:22]: Adding hash with value {Width=1300, Height=1080} to cache. [160] [3-3-2024 19:25:22]: [UI] Input Resolution: 1300x1080 [165] [3-3-2024 19:25:30]: Failed to parse "Normal Speed" to int: Formato della stringa di input non corretto. [166] [3-3-2024 19:25:30]: RefreshExtensions(Both) - alpha = False pngOutput = False aviHqChroma = False proresHqChroma = False [167] [3-3-2024 19:25:30]: RefreshExtensions - Using '.jpg' for imported frames, using '.png' for interpolated frames

[169] [3-3-2024 19:25:30]: Getting frame count (C:\Users\elena\Downloads\Pre-comp 16.mov) [170] [3-3-2024 19:25:30]: Cache contains this hash, using cached value.

[172] [3-3-2024 19:25:30]: RefreshAlpha: model.supportsAlpha = True - outputSupportsAlpha = False - input ext: .mov => alpha = False [173] [3-3-2024 19:25:30]: RefreshExtensions(Import) - alpha = False pngOutput = False aviHqChroma = False proresHqChroma = False [174] [3-3-2024 19:25:30]: RefreshExtensions - Using '.jpg' for imported frames, using '.png' for interpolated frames [175] [3-3-2024 19:25:30]: Extracting scenes from video... [176] [3-3-2024 19:25:30]: [UI] Extracting scene changes... [184] [3-3-2024 19:25:31]: [UI] Detected no scene changes. [185] [3-3-2024 19:25:31]: Extracting frames from video... [186] [3-3-2024 19:25:31]: RefreshExtensions(Import) - alpha = False pngOutput = False aviHqChroma = False proresHqChroma = False [187] [3-3-2024 19:25:31]: RefreshExtensions - Using '.jpg' for imported frames, using '.png' for interpolated frames [188] [3-3-2024 19:25:31]: Getting media resolution (C:\Users\elena\Downloads\Pre-comp 16.mov) [189] [3-3-2024 19:25:31]: Cache contains this hash, using cached value. [190] [3-3-2024 19:25:31]: [UI] Extracting video frames from input video... [199] [3-3-2024 19:25:32]: [UI] [REPL] Extracted 14 frames from input. [200] [3-3-2024 19:25:32]: Processing frames... [201] [3-3-2024 19:25:32]: [UI] Generating frame order information... [202] [3-3-2024 19:25:32]: [UI] [REPL] Generating frame order information for 2x... [203] [3-3-2024 19:25:32]: [UI] [REPL] Generating frame order information... Done. [204] [3-3-2024 19:25:32]: Generated frame order info file in 85 ms [205] [3-3-2024 19:25:32]: Downloading models... [206] [3-3-2024 19:25:32]: DownloadModelFiles(string ai = Flowframes.Data.AI, string model = RIFE40, bool log = True) [207] [3-3-2024 19:25:32]: Files for model RIFE40 not valid: C:\Users\elena\AppData\Local\Flowframes\FlowframesData\pkgs\rife-cuda\RIFE40 does not exist. [208] [3-3-2024 19:25:32]: [UI] Downloading 'RIFE40' model files...

[212] [3-3-2024 19:25:33]: [UI] [REPL] Downloading model file 'flownet.pkl'... 0% [213] [3-3-2024 19:25:33]: [UI] [REPL] Downloading model file 'flownet.pkl'... 1% [214] [3-3-2024 19:25:34]: [UI] [REPL] Downloading model file 'flownet.pkl'... 2% [215] [3-3-2024 19:25:34]: [UI] [REPL] Downloading model file 'flownet.pkl'... 3% [216] [3-3-2024 19:25:34]: [UI] [REPL] Downloading model file 'flownet.pkl'... 5% [217] [3-3-2024 19:25:35]: [UI] [REPL] Downloading model file 'flownet.pkl'... 6% [218] [3-3-2024 19:25:35]: [UI] [REPL] Downloading model file 'flownet.pkl'... 7% [219] [3-3-2024 19:25:36]: [UI] [REPL] Downloading model file 'flownet.pkl'... 9% [220] [3-3-2024 19:25:36]: [UI] [REPL] Downloading model file 'flownet.pkl'... 10% [221] [3-3-2024 19:25:36]: [UI] [REPL] Downloading model file 'flownet.pkl'... 11% [222] [3-3-2024 19:25:36]: [UI] [REPL] Downloading model file 'flownet.pkl'... 12% [223] [3-3-2024 19:25:37]: [UI] [REPL] Downloading model file 'flownet.pkl'... 13% [224] [3-3-2024 19:25:37]: [UI] [REPL] Downloading model file 'flownet.pkl'... 14% [225] [3-3-2024 19:25:37]: [UI] [REPL] Downloading model file 'flownet.pkl'... 15% [226] [3-3-2024 19:25:37]: [UI] [REPL] Downloading model file 'flownet.pkl'... 16% [227] [3-3-2024 19:25:37]: [UI] [REPL] Downloading model file 'flownet.pkl'... 17% [228] [3-3-2024 19:25:38]: [UI] [REPL] Downloading model file 'flownet.pkl'... 18% [229] [3-3-2024 19:25:38]: [UI] [REPL] Downloading model file 'flownet.pkl'... 19% [230] [3-3-2024 19:25:38]: [UI] [REPL] Downloading model file 'flownet.pkl'... 20% [231] [3-3-2024 19:25:38]: [UI] [REPL] Downloading model file 'flownet.pkl'... 21% [232] [3-3-2024 19:25:39]: [UI] [REPL] Downloading model file 'flownet.pkl'... 22% [233] [3-3-2024 19:25:39]: [UI] [REPL] Downloading model file 'flownet.pkl'... 23% [234] [3-3-2024 19:25:39]: [UI] [REPL] Downloading model file 'flownet.pkl'... 24% [235] [3-3-2024 19:25:39]: [UI] [REPL] Downloading model file 'flownet.pkl'... 25% [236] [3-3-2024 19:25:39]: [UI] [REPL] Downloading model file 'flownet.pkl'... 26% [237] [3-3-2024 19:25:40]: [UI] [REPL] Downloading model file 'flownet.pkl'... 27% [238] [3-3-2024 19:25:40]: [UI] [REPL] Downloading model file 'flownet.pkl'... 28% [239] [3-3-2024 19:25:40]: [UI] [REPL] Downloading model file 'flownet.pkl'... 29% [240] [3-3-2024 19:25:40]: [UI] [REPL] Downloading model file 'flownet.pkl'... 30% [241] [3-3-2024 19:25:40]: [UI] [REPL] Downloading model file 'flownet.pkl'... 31% [242] [3-3-2024 19:25:41]: [UI] [REPL] Downloading model file 'flownet.pkl'... 32% [243] [3-3-2024 19:25:41]: [UI] [REPL] Downloading model file 'flownet.pkl'... 33% [244] [3-3-2024 19:25:41]: [UI] [REPL] Downloading model file 'flownet.pkl'... 34% [245] [3-3-2024 19:25:41]: [UI] [REPL] Downloading model file 'flownet.pkl'... 35% [246] [3-3-2024 19:25:41]: [UI] [REPL] Downloading model file 'flownet.pkl'... 36% [247] [3-3-2024 19:25:42]: [UI] [REPL] Downloading model file 'flownet.pkl'... 37% [248] [3-3-2024 19:25:42]: [UI] [REPL] Downloading model file 'flownet.pkl'... 38% [249] [3-3-2024 19:25:42]: [UI] [REPL] Downloading model file 'flownet.pkl'... 39% [250] [3-3-2024 19:25:42]: [UI] [REPL] Downloading model file 'flownet.pkl'... 40% [251] [3-3-2024 19:25:43]: [UI] [REPL] Downloading model file 'flownet.pkl'... 41% [252] [3-3-2024 19:25:43]: [UI] [REPL] Downloading model file 'flownet.pkl'... 42% [253] [3-3-2024 19:25:43]: [UI] [REPL] Downloading model file 'flownet.pkl'... 43% [254] [3-3-2024 19:25:43]: [UI] [REPL] Downloading model file 'flownet.pkl'... 44% [255] [3-3-2024 19:25:44]: [UI] [REPL] Downloading model file 'flownet.pkl'... 45% [256] [3-3-2024 19:25:44]: [UI] [REPL] Downloading model file 'flownet.pkl'... 46% [257] [3-3-2024 19:25:45]: [UI] [REPL] Downloading model file 'flownet.pkl'... 47% [258] [3-3-2024 19:25:45]: [UI] [REPL] Downloading model file 'flownet.pkl'... 48% [259] [3-3-2024 19:25:45]: [UI] [REPL] Downloading model file 'flownet.pkl'... 49% [260] [3-3-2024 19:25:46]: [UI] [REPL] Downloading model file 'flownet.pkl'... 50% [261] [3-3-2024 19:25:46]: [UI] [REPL] Downloading model file 'flownet.pkl'... 51% [262] [3-3-2024 19:25:46]: [UI] [REPL] Downloading model file 'flownet.pkl'... 52% [263] [3-3-2024 19:25:47]: [UI] [REPL] Downloading model file 'flownet.pkl'... 53% [264] [3-3-2024 19:25:47]: [UI] [REPL] Downloading model file 'flownet.pkl'... 54% [265] [3-3-2024 19:25:47]: [UI] [REPL] Downloading model file 'flownet.pkl'... 55% [266] [3-3-2024 19:25:48]: [UI] [REPL] Downloading model file 'flownet.pkl'... 56% [267] [3-3-2024 19:25:48]: [UI] [REPL] Downloading model file 'flownet.pkl'... 57% [268] [3-3-2024 19:25:48]: [UI] [REPL] Downloading model file 'flownet.pkl'... 58% [269] [3-3-2024 19:25:48]: [UI] [REPL] Downloading model file 'flownet.pkl'... 59% [270] [3-3-2024 19:25:49]: [UI] [REPL] Downloading model file 'flownet.pkl'... 60% [271] [3-3-2024 19:25:49]: [UI] [REPL] Downloading model file 'flownet.pkl'... 61% [272] [3-3-2024 19:25:49]: [UI] [REPL] Downloading model file 'flownet.pkl'... 62% [273] [3-3-2024 19:25:49]: [UI] [REPL] Downloading model file 'flownet.pkl'... 63% [274] [3-3-2024 19:25:50]: [UI] [REPL] Downloading model file 'flownet.pkl'... 64% [275] [3-3-2024 19:25:50]: [UI] [REPL] Downloading model file 'flownet.pkl'... 65% [276] [3-3-2024 19:25:50]: [UI] [REPL] Downloading model file 'flownet.pkl'... 66% [277] [3-3-2024 19:25:51]: [UI] [REPL] Downloading model file 'flownet.pkl'... 67% [278] [3-3-2024 19:25:51]: [UI] [REPL] Downloading model file 'flownet.pkl'... 68% [279] [3-3-2024 19:25:51]: [UI] [REPL] Downloading model file 'flownet.pkl'... 69% [280] [3-3-2024 19:25:51]: [UI] [REPL] Downloading model file 'flownet.pkl'... 70% [281] [3-3-2024 19:25:52]: [UI] [REPL] Downloading model file 'flownet.pkl'... 71% [282] [3-3-2024 19:25:52]: [UI] [REPL] Downloading model file 'flownet.pkl'... 72% [283] [3-3-2024 19:25:52]: [UI] [REPL] Downloading model file 'flownet.pkl'... 73% [284] [3-3-2024 19:25:52]: [UI] [REPL] Downloading model file 'flownet.pkl'... 74% [285] [3-3-2024 19:25:53]: [UI] [REPL] Downloading model file 'flownet.pkl'... 75% [286] [3-3-2024 19:25:53]: [UI] [REPL] Downloading model file 'flownet.pkl'... 76% [287] [3-3-2024 19:25:53]: [UI] [REPL] Downloading model file 'flownet.pkl'... 77% [288] [3-3-2024 19:25:53]: [UI] [REPL] Downloading model file 'flownet.pkl'... 78% [289] [3-3-2024 19:25:53]: [UI] [REPL] Downloading model file 'flownet.pkl'... 79% [290] [3-3-2024 19:25:54]: [UI] [REPL] Downloading model file 'flownet.pkl'... 80% [291] [3-3-2024 19:25:54]: [UI] [REPL] Downloading model file 'flownet.pkl'... 81% [292] [3-3-2024 19:25:54]: [UI] [REPL] Downloading model file 'flownet.pkl'... 82% [293] [3-3-2024 19:25:54]: [UI] [REPL] Downloading model file 'flownet.pkl'... 83% [294] [3-3-2024 19:25:54]: [UI] [REPL] Downloading model file 'flownet.pkl'... 84% [295] [3-3-2024 19:25:55]: [UI] [REPL] Downloading model file 'flownet.pkl'... 85% [296] [3-3-2024 19:25:55]: [UI] [REPL] Downloading model file 'flownet.pkl'... 87% [297] [3-3-2024 19:25:55]: [UI] [REPL] Downloading model file 'flownet.pkl'... 88% [298] [3-3-2024 19:25:55]: [UI] [REPL] Downloading model file 'flownet.pkl'... 89% [299] [3-3-2024 19:25:55]: [UI] [REPL] Downloading model file 'flownet.pkl'... 90% [300] [3-3-2024 19:25:56]: [UI] [REPL] Downloading model file 'flownet.pkl'... 91% [301] [3-3-2024 19:25:56]: [UI] [REPL] Downloading model file 'flownet.pkl'... 92% [302] [3-3-2024 19:25:56]: [UI] [REPL] Downloading model file 'flownet.pkl'... 93% [303] [3-3-2024 19:25:56]: [UI] [REPL] Downloading model file 'flownet.pkl'... 94% [304] [3-3-2024 19:25:57]: [UI] [REPL] Downloading model file 'flownet.pkl'... 96% [305] [3-3-2024 19:25:57]: [UI] [REPL] Downloading model file 'flownet.pkl'... 97% [306] [3-3-2024 19:25:57]: [UI] [REPL] Downloading model file 'flownet.pkl'... 98% [307] [3-3-2024 19:25:57]: [UI] [REPL] Downloading model file 'flownet.pkl'... 99%

[315] [3-3-2024 19:25:59]: [UI] [REPL] Downloaded "RIFE40" model files. [316] [3-3-2024 19:26:0]: Computed CRC32 for 'flownet.pkl' (33,4 MB): 1179421346 (101ms) [317] [3-3-2024 19:26:0]: Computed CRC32 for 'IFNet_HDv3.py' (5,2 KB): 3272170289 (0ms) [318] [3-3-2024 19:26:0]: Computed CRC32 for 'refine.py' (3,3 KB): 3172957592 (0ms) [319] [3-3-2024 19:26:0]: Computed CRC32 for 'RIFE_HDv3.py' (3 KB): 2686196399 (0ms) [320] [3-3-2024 19:26:0]: Not Using AutoEnc: Input frames (14) factor (2) is smaller than (chunkSize (150) + safetyBufferFrames (90) 1.2f) [321] [3-3-2024 19:26:0]: Model RIFE40 has architecture python files - copying to arch. [322] [3-3-2024 19:26:0]: Getting media resolution (C:\Users\elena\Downloads\Pre-comp 16.mov) [323] [3-3-2024 19:26:0]: Cache contains this hash, using cached value. [324] [3-3-2024 19:26:0]: Starting GetProgressByFrameAmount() loop for outdir 'C:\Users\elena\Downloads\Pre-comp16-temp\interp', target is 27 frames [325] [3-3-2024 19:26:0]: [UI] Using embedded Python runtime. [326] [3-3-2024 19:26:0]: Getting media resolution (C:\Users\elena\Downloads\Pre-comp 16.mov) [327] [3-3-2024 19:26:0]: Cache contains this hash, using cached value. [328] [3-3-2024 19:26:0]: [UI] Running RIFE (CUDA)... [329] [3-3-2024 19:26:0]: cmd.exe /C cd /D "C:\Users\elena\AppData\Local\Flowframes\FlowframesData\pkgs\rife-cuda" & set CUDA_VISIBLE_DEVICES=0 & "C:\Users\elena\AppData\Local\Flowframes\FlowframesData\pkgs\py-tu\python.exe" -u rife.py --input "C:\Users\elena\Downloads\Pre-comp16-temp\frames" --output interp --model RIFE40 --multi 2 --wthreads 4 --rbuffer 200 [330] [3-3-2024 19:26:0]: Running AI...

[334] [3-3-2024 19:26:1]: [BgTaskMgr] Task 'TryDeleteIfExistsAsync C:\Users\elena\Downloads\Pre-comp16-temp_' has finished after 19ms (Timeout 120s) [335] [3-3-2024 19:26:2]: [UI] Canceled interpolation.

[339] [3-3-2024 19:26:23]: Message: A python error occured during interpolation! Check rife-cuda-log for details. [E] OSError: [WinError 193] %1 is not a valid Win32 application. Error loading "C:\Users\elena\AppData\Local\Flowframes\FlowframesData\pkgs\py-tu\Lib\site-packages\torch\lib\c10.dll" or one of its dependencies.

FancyNerd92 commented 8 months ago

same here!

n3nuzzzz commented 8 months ago

UPDATE!

After some time I got this message then I followed the link and downloaded the program. Now it works with every type of video. https://aka.ms/vs/16/release/vc_redist.x64.exe (this is the link to the direct download)

Screenshot 2024-03-10 alle 14 57 51