MCPcopy Create free account
hub / github.com/Atrovast/THGS / transform_Image_to_tensor

Function transform_Image_to_tensor

utils/image_utils.py:147–151  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

145 return mP
146
147def transform_Image_to_tensor(image):
148 # 将图像转换为张量
149 transform = transforms.ToTensor()
150 output_image = transform(image)
151 return output_image
152
153def generate_video(img_list, save_path):
154 # 定义编解码器并创建VideoWriter对象

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected