Comments (7)
Could you provide the complete error log? Is there a problem in training or testing? I guess one image is less than 256x256 in your training set.
from swinir.
Thanks for the reply.
I think I find the problem.
It is related to the datasets pixel boundary problem.
I will fixed the images in dataset.
Thanks.
from swinir.
Also, may I ask that when I load the pretrain_G, and pretrain E,
, "path": {
"root": "superresolution" // "denoising" | "superresolution" | "dejpeg"
, "pretrained_netG": "supersolution/swinir_sr_classical_patch64_x4_l1_test/model/5000_G.pth" // path of pretrained model. We fine-tune X3/X4/X8 models from X2 model, so that G_optimizer_lr
and G_scheduler_milestones
can be halved to save time.
, "pretrained_netE": "supersolution/swinir_sr_classical_patch64_x4_l1_test/model/5000_E.pth" // path of pretrained model
}
However, the printed status on the terminal mentioned pretrained_netG= null pretrained_netE=null
Is that I loaded the pretrain model?
Thanks.
from swinir.
Could you provide the complete error log? Is there a problem in training or testing? I guess one image is less than 256x256 in your training set.
Thanks for reply.
After I fixed the pixel problem of the image, there is another error comes out.
Do u have any idea for that?
Thanks.
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/data1/anaconda3/envs/py37_pytorch1.6/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/data1/KAIR/data/dataset_sr.py", line 43, in getitem
img_H = util.imread_uint(H_path, self.n_channels)
File "/data1/KAIR/utils/utils_image.py", line 193, in imread_uint
if img.ndim == 2:
AttributeError: 'NoneType' object has no attribute 'ndim'
from swinir.
For 'NoneType' object has no attribute 'ndim'
, it's always due to that the image path in invalid.
from swinir.
For
'NoneType' object has no attribute 'ndim'
, it's always due to that the image path in invalid.
Thanks I got it.
May I ask that when I load the pretrain_G, and pretrain E,
, "path": {
"root": "superresolution" // "denoising" | "superresolution" | "dejpeg"
, "pretrained_netG": "supersolution/swinir_sr_classical_patch64_x4_l1_test/model/5000_G.pth" // path of pretrained model. We fine-tune X3/X4/X8 models from X2 model, so that G_optimizer_lr and G_scheduler_milestones can be halved to save time.
, "pretrained_netE": "supersolution/swinir_sr_classical_patch64_x4_l1_test/model/5000_E.pth" // path of pretrained model
}
However, the printed status on the terminal mentioned pretrained_netG= null pretrained_netE=null
Is that I loaded the pretrain model?
Thanks.
from swinir.
For loading pretrained models, see #24 (comment) for a temporary solution. We will work on it later.
from swinir.
Related Issues (20)
- Colab notebook error
- About self-ensemble strategy
- not compatible with the latest cog version
- Did you train SwinIR on DIV test set?
- How to disable using two GPUs for training?
- only 1 swin layer in the RSTB module?
- It seems SwinIR doesn't use patch merging. HOT 2
- Loading pretrained weight achiving not accurate result HOT 1
- Error(s) in loading state_dict for SwinIR HOT 5
- Inquiry about patch embedding HOT 4
- 关于X8的测试集
- JPEG Artifact Removal window size
- Transfer Learning with SWINIR model
- Artifact SWINIR (training Model as Generator GAN) HOT 1
- dynamic shape inference with onnx model HOT 1
- The noise removal command eats up my entire RAM and then gets killed HOT 5
- Load model takes forever
- SWINIR as Generator in GAN : Real world
- Unable to load pretrained model
- change the video card to run on the site replicate HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swinir.