mirror of
https://github.com/THUDM/CogVideo.git
synced 2025-06-17 13:59:17 +08:00
fix bug of i2v; video is already 0-255
video is already 0-255 and should not be multiplied 255 any more
This commit is contained in:
parent
cd861bbe1e
commit
09a49d3546
@ -526,7 +526,7 @@ class Trainer:
|
||||
video, self.state.train_frames, self.state.train_height, self.state.train_width
|
||||
)
|
||||
# Convert video tensor (F, C, H, W) to list of PIL images
|
||||
video = (video * 255).round().clamp(0, 255).to(torch.uint8)
|
||||
video = video.round().clamp(0, 255).to(torch.uint8)
|
||||
video = [Image.fromarray(frame.permute(1, 2, 0).cpu().numpy()) for frame in video]
|
||||
|
||||
logger.debug(
|
||||
|
Loading…
x
Reference in New Issue
Block a user