torch-dct icon indicating copy to clipboard operation
torch-dct copied to clipboard

DCT (discrete cosine transform) functions for pytorch

Results 10 torch-dct issues
Sort by recently updated
recently updated
newest added

刚刚使用dct_2d函数试了一下,结果和cv2的dct()函数结果出入较大。手动计算了DC系数,手算的结果和cv2.dct()是吻合的,但是与dct_2d()的DC系数相差较大,其它系数暂未验证。请问您遇到过这样的情况吗

This version should be compatible with multiple PyTorch versions (it works at least on 1.6.0, 1.7.1, 1.8.1, 1.9.0). This fix is based on suggestions from this comment https://github.com/zh217/torch-dct/issues/15#issuecomment-851439294 by @SunnerLi...

When I try to run the example, I get a runtime error ``` >>> X = dct.dct(x) # DCT-II done through the last dimension Traceback (most recent call last): File...

Hi, I read the docs of torch. rfft. It says that torch. rfft is implementation of FFT. But FFT is not dct. In your code you use torch. rfft to...

>>> X = dct.dct(x) UserWarning: The function torch.rfft is deprecated and will be removed in a future PyTorch release. Use the new torch.fft module functions, instead, by importing torch.fft and...

Hi @zh217, I just installed torch-dct and tried the test on the README page. I am getting an AssertionError. The value of (torch.abs(x - y)).sum() is small though: 3.0896e-05. Any...

When I import and use this package, it sometimes appears the segmentation fault (core dumped)problem. Has any one meet this kind of problem before?

Fixed build on Travis CI. I'm not sure if Python 3.5 should be dropped, but I added Python 3.7 for the build.

input image "im_gray" of uint8 and size of [256,256], then i made following operations with opencv and torch-dct, respectively: **a = cv2.dct(im_gray.astype("float"))** **b = torch_dct.dct_2d(torch.from_numpy(im_gray.astype("float")))**. But **a** and **b** are...

Could please tell me how can i apply LinearDCT which is faster in gpu on a batch of images ?