Spaces:
Runtime error
Runtime error
File size: 551 Bytes
a4d851a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from model import TextureSynthesisCNN
def main():
synthesizer = TextureSynthesisCNN(tex_exemplar_path="data/cracked_0063.png")
synthesizer.synthesize_texture(num_epochs=10)
# synthesizer.optimize(num_epochs=500) # can call this on an existing model object to continue optimization
synthesizer.save_textures(output_dir="./results/", # directory automatically is created if not found
display_when_done=True) # saves exemplar and synth into the output_dir folder
if __name__ == '__main__':
main()
|