SingleVariableCostFunction in nn/part2

This commit is contained in:
Grant Sanderson
2017-10-10 13:48:13 -07:00
parent cc1767718c
commit fd59591000
4 changed files with 964 additions and 4314 deletions

View File

@ -59,7 +59,8 @@ class Transform(Animation):
Animation.clean_up(self, surrounding_scene)
if self.replace_mobject_with_target_in_scene and surrounding_scene is not None:
surrounding_scene.remove(self.mobject)
surrounding_scene.add(self.original_target_mobject)
if not self.remover:
surrounding_scene.add(self.original_target_mobject)
class ReplacementTransform(Transform):
CONFIG = {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -479,14 +479,14 @@ class Scene(object):
command = [
FFMPEG_BIN,
'-y', # overwrite output file if it exists
'-y', # overwrite output file if it exists
'-f', 'rawvideo',
'-vcodec','rawvideo',
'-s', '%dx%d'%(width, height), # size of one frame
'-pix_fmt', 'rgba',
'-r', str(fps), # frames per second
'-i', '-', # The imput comes from a pipe
'-an', # Tells FFMPEG not to expect any audio
'-i', '-', # The imput comes from a pipe
'-an', # Tells FFMPEG not to expect any audio
'-vcodec', 'mpeg',
'-c:v', 'libx264',
'-pix_fmt', 'yuv420p',