texturedesign / texturize

🤖🖌️ Generate photo-realistic textures based on source images or (soon) PBR materials. Remix, remake, mashup! Useful if you want to create variations on a theme or elaborate on an existing texture.
GNU Affero General Public License v3.0
706 stars 32 forks source link

Getting runtime error while trying Texturize Demo: Grass in Colab #44

Closed ishu121992 closed 1 year ago

ishu121992 commented 1 year ago

/usr/local/lib/python3.9/dist-packages/texturize/critics.py:116: UserWarning: Using a target size (torch.Size([256, 256])) that is different to the input size (torch.Size([256, 253])). This will likely lead to incorrect results due to broadcasting. Please ensure they have the same size. yield F.mse_loss(current, source)

RuntimeError Traceback (most recent call last) in <cell line: 3>() 1 display_widget = io.show_result_in_notebook() 2 ----> 3 for result in synthesize(grass1): 4 display_widget.update(result)

15 frames /usr/local/lib/python3.9/dist-packages/torch/functional.py in broadcast_tensors(tensors) 72 if has_torch_function(tensors): 73 return handle_torch_function(broadcast_tensors, tensors, tensors) ---> 74 return _VF.broadcast_tensors(tensors) # type: ignore[attr-defined] 75 76

RuntimeError: The size of tensor a (253) must match the size of tensor b (256) at non-singleton dimension 1

alexjc commented 1 year ago

Thank you! It's a known issue and I almost have the fix ready.

alexjc commented 1 year ago

Fix is checked in and will be in the next release!