docs: unify algorithm explanation and update teaching video
This commit is contained in:
parent
a1e43bb679
commit
dd5fab9540
15 changed files with 1680 additions and 1050 deletions
|
|
@ -30,7 +30,7 @@ env = dict(os.environ, PATH=str(tools)+os.pathsep+os.environ['PATH'])
|
|||
env = prepare_tex(env)
|
||||
quality = '-ql' if args.quality == 'preview' else '-qh'
|
||||
fps = '15' if args.quality == 'preview' else '30'
|
||||
subprocess.run([sys.executable, '-m', 'manim', quality, '--fps', fps, '--disable_caching',
|
||||
subprocess.run([sys.executable, '-m', 'manim', quality, '--fps', fps,
|
||||
'--format', 'mp4', '-o', args.scene, 'scenes.py', args.scene],
|
||||
env=env, check=True)
|
||||
source = next(p for p in (HERE / 'media/videos/scenes').rglob(f'{args.scene}.mp4')
|
||||
|
|
@ -46,7 +46,7 @@ with av.open(str(target)) as video:
|
|||
'audio_streams': len(video.streams.audio), 'chapters': timeline['chapters'],
|
||||
'caption_count': len(timeline['cues'])}
|
||||
report['source_sha256'] = {p: hashlib.sha256((HERE / p).read_bytes()).hexdigest()
|
||||
for p in ('scenes.py', 'render.py', 'tex_environment.py', 'manim.cfg', 'uv.lock', 'data/benchmarks.json')}
|
||||
for p in ('scenes.py', 'render.py', 'tex_environment.py', 'check_lower35.py', 'manim.cfg', 'uv.lock', 'data/benchmarks.json')}
|
||||
samples = [chapter['start']+3 for chapter in timeline['chapters']]
|
||||
samples += [cue['start']+1 for cue in timeline['cues']
|
||||
if cue['text'].startswith(('A 组', 'B 组', 'C 组', '同一 4096'))]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue