-
Notifications
You must be signed in to change notification settings - Fork 39
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
Using the other supported neural network models on ColabNotebook and inference_image.py #13
Comments
Managed to get DBLRNet to work using the ColabNotebook example. The name in the config has to match that of the model used which can be found in./configs/dblrnet_dvd.yaml and using the model file dblrnet_dvd.pth.
However, I still cannot get it to work for the other models, e.g. CDVD-TSP. I get the error message below. :(
|
Hello, thank you for your interest in this project.
...
model:
name: "DBLRNet"
num_frames: 5
in_channels: 3
inner_channels: 64
... then your ...
model_cfg = edict({
"name": "DBLRNet",
"num_frames": 5,
"in_channels": 3,
"inner_channels": 64
})
... Note that different models may adopt different input data formats, you may change the dataset config
model_cfg = edict({
name: "CDVD_TSP",
in_channels: 3,
n_sequence: 5,
out_channels: 3,
n_resblock: 3,
n_feat: 32,
load_flow_net: True,
load_recons_net: False,
flow_pretrain_fn: "",
recons_pretrain_fn: "",
is_mask_filter: True
)} If you have more problems, please feel free to contact me. |
Thanks for the quick response. Indeed the contents of the YAML config files for the supported models have different parameters. I'll adapt the parameters on the ColabNotebook example and try them again for the other models like the CDVD-TSP. When I ran Install.sh, I got errors from missing headers as the script tries to compile some codes using NVCC. So I needed to install additional NVIDIA AI libraries like cudnn, cutensor, nccl and cupy along with the CUDA toolkit (v11.7 for me) to get the Install.sh to work. So I thought it might be useful to also indicate this in the README.md for first-timers setting up out SimDeblur. 👍 I appreciate your contributions of putting together a generic framework to test different flavours of trained neural networks.It certainly helps SW developers like myself which do not have background in AI to be able to quickly use and try different models by just changing a line of code. 😄 |
Many thanks for your useful advice! I would indicate the installation process and add more descriptions in the README.md file. 😄 |
Hello there,
I was able to follow your example which you have posted on the ColabNotebook and have successfully able to perform deblurring using the DBN model on the test images locally on my PC via JupyterNotebook with CUDA enabled on PyTorch. So the example in ColabNotebook using DBN is working well.
Next, I tried to load a different mode (i.e. the DBLRNet) to compare the results, with the code snippet below.
I then get an error from the Python below.
I have also attempted to run the inference_image.py script to do the same thing with following command in Linux.
python inference_image.py ./configs/dblrnet/dblrnet_dvd.yaml ./demo/dblrnet_dvd.pth --img=./datasets/input/00000.jpg
This resulted in the following error below.
Do you know what could be causing the issue here? It would be really nice if you could provide step-by-step examples on how to use the scripts to deblur images/videos along with test inputs and expected output, so that we know we have properly setup the SimDeblur on our machines locally.
P.S. It would be useful to also add in the README.md on the instructions of how to install all the required dependencies for SimDeblur, e.g. the Python packages and the CUDA AI libraries and toolkit on Linux. Thanks again for the great work. 👍
The text was updated successfully, but these errors were encountered: