texturize icon indicating copy to clipboard operation
texturize copied to clipboard

AttributeError: 'Tensor' object has no attribute 'save'

Open sharoseali opened this issue 2 years ago • 0 comments

HI I want to create texture from 2 or more images. I tried the mashup code but got error. I resized my images to 512x512

sources = [
    io.load_image_from_file("/home/casper/Desktop/point_clouds/texturize/tex1.png"),
    io.load_image_from_file("/home/casper/Desktop/point_clouds/texturize/tex2.png")
    # io.load_image_from_file("/home/casper/Desktop/point_clouds/texturize/tex3.png"),
    # io.load_image_from_file("/home/casper/Desktop/point_clouds/texturize/tex4.png")
]

# Only process one octave to retain photo-realistic output.
mashup = commands.Mashup(sources)

for result in api.process_octaves(mashup, octaves=5):
    pass

# The output can be saved in any PIL-supported format.
result.images.save("output.png")

Also tried with result.image.save('output.png') but it doesn't work. is it correct any help?? AttributeError: 'Result' object has no attribute 'image'

sharoseali avatar Nov 16 '21 01:11 sharoseali