- Renamed `VideoAnalyzerWithAudio` to `VideoAnalyzerFaceDetector`. - Introduced `VIDEO_ANALYSIS_CACHE` and `current_loop_index` for cycle caching. - Created `VideoAnalyzerSceneDetector` to detect scene changes via pixel difference. - Added dynamic reference frame preview functionality outside the caching logic. - Registered nodes with proper display names in `__init__.py`.
13 lines
351 B
Python
13 lines
351 B
Python
def fix():
|
|
with open('video.py', 'r') as f:
|
|
content = f.read()
|
|
|
|
content = content.replace('_log(f"{'+'=\'*50}\n")', '_log(f"{'+'=\'*50}\\n")')
|
|
content = content.replace('", "\n".join(log_output))}', '", "\\n".join(log_output))}')
|
|
|
|
with open('video.py', 'w') as f:
|
|
f.write(content)
|
|
|
|
if __name__ == '__main__':
|
|
fix()
|