-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inference does not work correctly #2
Comments
Hi @darkasevgen ! Thanks for your question. I fix the slice bug and upload a new model. You can try again! |
Can you tell me more about how gif is received ? |
Hi @darkasevgen , the gif is generated with the whole image size. just like img = cv2.imread('')
img_h,img_w,_ = img.shape
n_h,n_w = img_h // 8 * 8,img_w // 8 * 8
img = cv2.resize(img,(n_w,n_h)) the model can run at any resolution which can be divided with no remainder. |
Thank you for your reply. |
Hi @LeslieZhoa, thanks for your implementation.
I tried running the inference.py script and I faced some problems.
I fixed the 'netG' key in the line:
DCT-NET.Pytorch/inference.py
Line 25 in ebdc7bd
to 'G' because final.pth does not contain 'netG'.
Also in the postprocess method you make the slice [..., ::-1], and you also make it after calling the run method:
DCT-NET.Pytorch/inference.py
Line 55 in ebdc7bd
I removed the extra slice.
![dct_net](https://user-images.githubusercontent.com/52633920/182562374-e707bbde-73d8-41e3-8854-ef171b62cd1b.png)
But I still get an unrealistic image (ran at 1024 and 256 resolutions). I'm attaching an example (first line is 1024, second line is 256) and waiting for a response/comment.
The text was updated successfully, but these errors were encountered: