
from subprocess import call

base_image = '/media/calvin/Moloch/Drive/Art/animals/tumblr_o1f3mmJOIi1u6jismo3_540.jpg'

channels_per_layer = {
  'conv2_1': 128,
  'conv2_2': 128,
  'conv3_1': 256,
  'conv3_2': 256,
  'conv3_3': 256,
  'conv3_4': 256,
  'conv4_1': 512,
  'conv4_2': 512,
  'conv4_3': 512,
  'conv4_4': 512,
  'conv5_1': 512,
  'conv5_2': 512,
  'conv5_3': 512,
  'conv5_4': 512,
#  'fc6': 4096,
#  'fc7': 4096,
  'fc8': 1000,
  'soft': 1000,
}

def execute(layer, channel):
  command = [
    'python3',
    'renderer_1.py',
    '--channel=%d' % (channel),
    '--layer=%s' % (layer),
    '--learning_rate=.5',
    '--checkpoint_interval=1',
    '--output_dir=./output/bulk',
    '--max_steps=200',
    '--base_name=squirrel',
  ]
  
  if base_image:
    command.append('--base_image=' + base_image)
  
  print('>>> ' + ' '.join(command))
  call(command)


if __name__ == "__main__":
  for layer in sorted(channels_per_layer.keys()):
    for channel in range(channels_per_layer[layer]):
      execute(layer, channel)


df7cdb1e772ed503a3f2a5586a4d1c6b6d4cbec8
<mask token>


def execute(layer, channel):
    command = ['python3', 'renderer_1.py', '--channel=%d' % channel, 
        '--layer=%s' % layer, '--learning_rate=.5',
        '--checkpoint_interval=1', '--output_dir=./output/bulk',
        '--max_steps=200', '--base_name=squirrel']
    if base_image:
        command.append('--base_image=' + base_image)
    print('>>> ' + ' '.join(command))
    call(command)


<mask token>

<mask token>


def execute(layer, channel):
    command = ['python3', 'renderer_1.py', '--channel=%d' % channel, 
        '--layer=%s' % layer, '--learning_rate=.5',
        '--checkpoint_interval=1', '--output_dir=./output/bulk',
        '--max_steps=200', '--base_name=squirrel']
    if base_image:
        command.append('--base_image=' + base_image)
    print('>>> ' + ' '.join(command))
    call(command)


if __name__ == '__main__':
    for layer in sorted(channels_per_layer.keys()):
        for channel in range(channels_per_layer[layer]):
            execute(layer, channel)

<mask token>
base_image = (
    '/media/calvin/Moloch/Drive/Art/animals/tumblr_o1f3mmJOIi1u6jismo3_540.jpg'
    )
channels_per_layer = {'conv2_1': 128, 'conv2_2': 128, 'conv3_1': 256,
    'conv3_2': 256, 'conv3_3': 256, 'conv3_4': 256, 'conv4_1': 512,
    'conv4_2': 512, 'conv4_3': 512, 'conv4_4': 512, 'conv5_1': 512,
    'conv5_2': 512, 'conv5_3': 512, 'conv5_4': 512, 'fc8': 1000, 'soft': 1000}


def execute(layer, channel):
    command = ['python3', 'renderer_1.py', '--channel=%d' % channel, 
        '--layer=%s' % layer, '--learning_rate=.5',
        '--checkpoint_interval=1', '--output_dir=./output/bulk',
        '--max_steps=200', '--base_name=squirrel']
    if base_image:
        command.append('--base_image=' + base_image)
    print('>>> ' + ' '.join(command))
    call(command)


if __name__ == '__main__':
    for layer in sorted(channels_per_layer.keys()):
        for channel in range(channels_per_layer[layer]):
            execute(layer, channel)

from subprocess import call
base_image = (
    '/media/calvin/Moloch/Drive/Art/animals/tumblr_o1f3mmJOIi1u6jismo3_540.jpg'
    )
channels_per_layer = {'conv2_1': 128, 'conv2_2': 128, 'conv3_1': 256,
    'conv3_2': 256, 'conv3_3': 256, 'conv3_4': 256, 'conv4_1': 512,
    'conv4_2': 512, 'conv4_3': 512, 'conv4_4': 512, 'conv5_1': 512,
    'conv5_2': 512, 'conv5_3': 512, 'conv5_4': 512, 'fc8': 1000, 'soft': 1000}


def execute(layer, channel):
    command = ['python3', 'renderer_1.py', '--channel=%d' % channel, 
        '--layer=%s' % layer, '--learning_rate=.5',
        '--checkpoint_interval=1', '--output_dir=./output/bulk',
        '--max_steps=200', '--base_name=squirrel']
    if base_image:
        command.append('--base_image=' + base_image)
    print('>>> ' + ' '.join(command))
    call(command)


if __name__ == '__main__':
    for layer in sorted(channels_per_layer.keys()):
        for channel in range(channels_per_layer[layer]):
            execute(layer, channel)


from subprocess import call

base_image = '/media/calvin/Moloch/Drive/Art/animals/tumblr_o1f3mmJOIi1u6jismo3_540.jpg'

channels_per_layer = {
  'conv2_1': 128,
  'conv2_2': 128,
  'conv3_1': 256,
  'conv3_2': 256,
  'conv3_3': 256,
  'conv3_4': 256,
  'conv4_1': 512,
  'conv4_2': 512,
  'conv4_3': 512,
  'conv4_4': 512,
  'conv5_1': 512,
  'conv5_2': 512,
  'conv5_3': 512,
  'conv5_4': 512,
#  'fc6': 4096,
#  'fc7': 4096,
  'fc8': 1000,
  'soft': 1000,
}

def execute(layer, channel):
  command = [
    'python3',
    'renderer_1.py',
    '--channel=%d' % (channel),
    '--layer=%s' % (layer),
    '--learning_rate=.5',
    '--checkpoint_interval=1',
    '--output_dir=./output/bulk',
    '--max_steps=200',
    '--base_name=squirrel',
  ]
  
  if base_image:
    command.append('--base_image=' + base_image)
  
  print('>>> ' + ' '.join(command))
  call(command)


if __name__ == "__main__":
  for layer in sorted(channels_per_layer.keys()):
    for channel in range(channels_per_layer[layer]):
      execute(layer, channel)

