vdigpku / qgcn Goto Github PK
View Code? Open in Web Editor NEWLearning a Single Model With a Wide Range of Quality Factors for JPEG Image Artifacts Removal (TIP 2020)
License: MIT License
Learning a Single Model With a Wide Range of Quality Factors for JPEG Image Artifacts Removal (TIP 2020)
License: MIT License
python src/main.py --dataloader jpeg_qm --size 64 --batchSize 256 --quality [10,50] --colorMode RGB --net qmar --n_resblock 64 --loss L1 --cuda --threads 4 --gpus [0] --savedir QCN --nEpochs 50 --imgGTRoot src/data/DIV2K_train_HR/
Hi there, I changed the dataPath in both eval_qm.py and eval.py to my fold for the DIV2K dataset and tried to run the test code for the pre-trained model. The error was thrown,
(qgcn) rong@server02:/sda/qgcn/QGCN-master$ python src/eval_qmg.py --model /sda/qgcn/QGCN-master/QCN_RGB.pth --GT --gtdata DIV2K --quality 10 --cuda
Namespace(GT=True, colorMode='RGB', cuda=True, gpus='0', gtdata='DIV2K', model='/sda/qgcn/QGCN-master/QCN_RGB.pth', quality=10, realdatapath='testdata', save='')
=> use gpu id: '0'
/home/rong/anaconda3/envs/qgcn/lib/python3.8/site-packages/torch/serialization.py:868: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
/home/rong/anaconda3/envs/qgcn/lib/python3.8/site-packages/torch/serialization.py:868: SourceChangeWarning: source code of class 'torch.nn.modules.container.Sequential' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
/home/rong/anaconda3/envs/qgcn/lib/python3.8/site-packages/torch/serialization.py:868: SourceChangeWarning: source code of class 'torch.nn.modules.activation.ReLU' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
/home/rong/anaconda3/envs/qgcn/lib/python3.8/site-packages/torch/serialization.py:868: SourceChangeWarning: source code of class 'torch.nn.modules.pixelshuffle.PixelShuffle' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
[1/100] 0801.png
Traceback (most recent call last):
File "src/eval_qmg.py", line 101, in <module>
HQImg = model([currImg, gloImg])
File "/home/rong/anaconda3/envs/qgcn/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/sda/qgcn/QGCN-master/src/nets/qmar.py", line 39, in forward
out = self.conv_input(x)
File "/home/rong/anaconda3/envs/qgcn/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/home/rong/anaconda3/envs/qgcn/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 463, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/home/rong/anaconda3/envs/qgcn/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 459, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,
TypeError: conv2d() received an invalid combination of arguments - got (list, Parameter, NoneType, tuple, tuple, tuple, int), but expected one of:
* (Tensor input, Tensor weight, Tensor bias, tuple of ints stride, tuple of ints padding, tuple of ints dilation, int groups)
didn't match because some of the arguments have invalid types: (list, Parameter, NoneType, tuple, tuple, tuple, int)
* (Tensor input, Tensor weight, Tensor bias, tuple of ints stride, str padding, tuple of ints dilation, int groups)
didn't match because some of the arguments have invalid types: (list, Parameter, NoneType, tuple, tuple, tuple, int)
Could you please give me some suggestions to deal with that?
Further training is going on.
Thank you for releasing the code, and can you provide the pretrained model ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.