-
Notifications
You must be signed in to change notification settings - Fork 23
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
Issue about sv mode #12
Comments
Hi, may I ask a question, please? |
I think so. "1<= sv_mode <= 5" is spatially-variant and "sv_mode=0" is spatially-invariant. |
Thanks so much for response. |
sorry, have you met the dimension error? The shape of |
whether should I reshape the real kernel? like using |
Could u please help me what exactly is ground truth kernel? |
Hi.
I'm trying to train MANet with spatially-variant mode.
I changed your code here
MANet/codes/train.py
Line 172 in eaf8265
to this :
But it returns error :
Traceback (most recent call last): File "train.py", line 347, in <module> main() File "train.py", line 210, in main model.optimize_parameters(current_step, scaler) File "/home/hsj/d_drive/hsj/hsj/MANet/codes/models/B_model.py", line 165, in optimize_parameters -1) * 10000) / self.fake_K.size(1) RuntimeError: expand(torch.cuda.FloatTensor{[16, 1, 36864, 21, 21]}, size=[-1, 36864, -1, -1]): the number of sizes provided (4) must be greater or equal to the number of dimensions in the tensor (5)
So I erased unsqueeze here (
MANet/codes/models/B_model.py
Line 162 in 34f90ba
to this :
However OOM occurs :(
RuntimeError: CUDA out of memory. Tried to allocate 2.91 GiB (GPU 0; 11.93 GiB total capacity; 8.78 GiB already allocated; 1.57 GiB free; 9.73 GiB reserved in total by PyTorch)
Is MANet not enough to train sv mode with 12GB RAM??
The text was updated successfully, but these errors were encountered: