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

No module named 'ipg_kit' #148

Open
just-dude1 opened this issue Sep 13, 2024 · 15 comments
Open

No module named 'ipg_kit' #148

just-dude1 opened this issue Sep 13, 2024 · 15 comments

Comments

@just-dude1
Copy link

when i try the project IPG with this code:python exec.py --opt options/train_IPG_SR_x2.yml --eval_opt options/test_IPG_BasicSR_x2.yml --scale 2

@YuchuanTian
Copy link
Collaborator

Actually, ipg_kit refers to the script ipg_kit.py
The command must be run at the folder "IPG" (i.e. ipg_kit.py must be in the root directory) in order to let the code run.
Let me know if you have further questions. Thanks!

@gitlonglong
Copy link

when i try the project IPG with this code:python exec.py --opt options/train_IPG_SR_x2.yml --eval_opt options/test_IPG_BasicSR_x2.yml --scale 2

I'm also having this problem, the key to the problem is the way of installation, replace “python setup.py install” or “python install .” instead of “pip install -e .” This will solve the problem.

@ACynj
Copy link

ACynj commented Oct 18, 2024

Actually, ipg_kit refers to the script ipg_kit.py The command must be run at the folder "IPG" (i.e. ipg_kit.py must be in the root directory) in order to let the code run. Let me know if you have further questions. Thanks!

Hello,
I ran the command pip install wheel==0.26 and then used pip install -r requirements.txt followed by python setup.py install.
And I entered the version information as "1.1.1.".After that, I executed the command python exec.py --opt options/train_IPG_SR_x2.yml --eval_opt options/test_IPG_BasicSR_x2.yml --scale 2 in the "IPG" folder, but I'm still encountering the error: "No module named 'ipg_kit'."
Could you please provide a solution? Thank you very much!

@lightdust02
Copy link

Actually, ipg_kit refers to the script ipg_kit.py The command must be run at the folder "IPG" (i.e. ipg_kit.py must be in the root directory) in order to let the code run. Let me know if you have further questions. Thanks!

Hello, I ran the command pip install wheel==0.26 and then used pip install -r requirements.txt followed by python setup.py install. And I entered the version information as "1.1.1.".After that, I executed the command python exec.py --opt options/train_IPG_SR_x2.yml --eval_opt options/test_IPG_BasicSR_x2.yml --scale 2 in the "IPG" folder, but I'm still encountering the error: "No module named 'ipg_kit'." Could you please provide a solution? Thank you very much!

YES. I meet a same problem,which bothers me……

@gitlonglong
Copy link

@ACynj @lightdust02
I also encountered this problem and eventually solved it by using "pip install -e ." instead of "python setup. py install". If it is already installed, uninstall BasicSR first. The '- e' parameter represents' editable ', which means that you are installing an editable package. I seem to have encountered the issue of wheels before. Wheel==0.26 doesn't seem necessary, just "pip install wheel" is also acceptable.

@ACynj
Copy link

ACynj commented Oct 22, 2024

@gitlonglong Thank you.Previous problem has been sloved.But i meet a new problem that "cant't find the path '../SRdata/BasicSR_SR_test/Set5/LRbicx2'".I have these files.I want to ask if i should prepare the datasets brefore i enter the 'pip install -e .' or not.

@lightdust02
Copy link

lightdust02 commented Oct 22, 2024 via email

@Newones11
Copy link

The file structure of urban100 is not correct. Can you help me solve it?

@lightdust02
Copy link

lightdust02 commented Oct 24, 2024 via email

@Newones11
Copy link

That's a tricky question. I have searched many times for similar issues in search engines,but I can't find the satisfied answer. The only thing that I know is that it seems like we need to use gtmod12 and LRbicx2 to resample Urban100,but I can't find the codes of gtmod12 and LRbicx2. It's a pity.

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年10月24日(星期四) 下午2:28 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [huawei-noah/Efficient-Computing] No module named 'ipg_kit' (Issue #148) The file structure of urban100 is not correct. Can you help me solve it? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

I will look again to see if there is any relevant information. Thank you for your reply. I wish you a happy life.

@YuchuanTian
Copy link
Collaborator

As for the test dataset: previously I downloaded them from somewhere but they are protected within internal devices. I have provided a way to replicate the testsets based on the official BasicSR Matlab codes: #144

Since many people are asking about datasets, it occurs to me that this is a series problem. I will try to upload an official version of testsets for the ease of replication, but unfortunately the original datasets are in the internal devices and are thus unavailable at my hand. I think I will complete the internal safety check processes in the upcoming weeks, and thank you all for your patience!

@lightdust02
Copy link

lightdust02 commented Oct 24, 2024 via email

@YuchuanTian
Copy link
Collaborator

I also have a tedious solution to "no module named ipg_kit" (But it always works!!!) Copy everything in ipg_kit.py to LowLevel/IPG/basicsr/archs/IPG_arch.py, and remove the dependency of IPG_arch.py on ipg_kit. I believe this solution makes things a lot EASIER!!!😊

@YuchuanTian
Copy link
Collaborator

YuchuanTian commented Oct 24, 2024

It never occurred to me that dependency could cause so much problem here (cause the code is running smoothly on my internal device... I have no idea what's going on...) My sincere apology.

@YuchuanTian
Copy link
Collaborator

Hi, the preprocessed test dataset could be downloaded from this link: https://huggingface.co/datasets/yuchuantian/BasicSR_SR_test
Thank you all for your helpful discussion!

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

6 participants