rlaphoenix / VSGAN

PyTorch-based Super-Resolution and Restoration Image Processing Module for VapourSynth
https://vsgan.phoeniix.dev
MIT License
190 stars 13 forks source link

module 'torch' has no attribute 'frombuffer' #19

Closed oblessnoob closed 2 years ago

oblessnoob commented 2 years ago

python 3.9.7 torch 1.9.1

corecode: egvsr = EGVSR(clip = video, device='cuda') egvsr.load(r'D:\winpython\VapourSynth64Portable\pretrained_models\EGVSR_iter420000.pth') egvsr.apply() video = egvsr.clip

rlaphoenix commented 2 years ago

torch.frombuffer was added in torch 1.10.0. You need to update your torch.

oblessnoob commented 2 years ago

the document said vsgan only need torch 1.6.0, it is a bug in your vsgan

oblessnoob commented 2 years ago

you didnt fix the issue and close the issue, why

rlaphoenix commented 2 years ago

the document said vsgan only need torch 1.6.0, it is a bug in your vsgan

Yes it said that for old versions and has since been updated. You still need to use torch 1.10.0 or newer.

you didnt fix the issue and close the issue, why

I provided you the solution already, update torch to 1.10.0 or newer. The issue is not on my end.