MCPcopy Create free account
hub / github.com/3DAnimals/3DAnimals / _upscale_replicate

Function _upscale_replicate

model/render/material.py:146–149  ·  view source on GitHub ↗
(x, full_res)

Source from the content-addressed store, hash-verified

144######################################################################################
145
146def _upscale_replicate(x, full_res):
147 x = x.permute(0, 3, 1, 2)
148 x = torch.nn.functional.pad(x, (0, full_res[1] - x.shape[3], 0, full_res[0] - x.shape[2]), 'replicate')
149 return x.permute(0, 2, 3, 1).contiguous()
150
151def merge_materials(materials, texcoords, tfaces, mfaces):
152 assert len(materials) > 0

Callers 1

merge_materialsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected