Skip to content
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

对单一图片进行去噪 #80

Open
AuroraH1 opened this issue Nov 15, 2024 · 0 comments
Open

对单一图片进行去噪 #80

AuroraH1 opened this issue Nov 15, 2024 · 0 comments

Comments

@AuroraH1
Copy link

请问怎样对指定图像进行去噪并保存?好像不得不对imagenet_var_1k文件进行修改。以下是我的代码:
python main.py --ni --config imagenet_256.yml --path_y ./Pics/flower123.jpg --eta 0.85 --deg "denoising" --deg_scale 1 --sigma_y 0.2 -i Pics --add_noise

INFO - main.py - 2024-11-15 09:55:15,821 - Using device: cuda
Run SVD-based DDNM. 100 sampling steps. travel_length = 1, travel_repeat = 1. Task: denoising.
building dataset from exp\imagenet_val_1k.txt
read meta done
Dataset has size 8
Start from 0
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 100/100 [00:19<00:00, 5.24it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 100/100 [00:17<00:00, 5.73it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 100/100 [00:17<00:00, 5.72it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 100/100 [00:17<00:00, 5.66it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 100/100 [00:17<00:00, 5.71it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 100/100 [00:17<00:00, 5.71it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 100/100 [00:17<00:00, 5.71it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 100/100 [00:17<00:00, 5.70it/s]
PSNR: 31.00: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [02:22<00:00, 17.80s/it]
Total Average PSNR: 31.00
Number of samples: 8
并且不知道图片保存到哪里去了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant