csxmli2016 / DFDNet

Blind Face Restoration via Deep Multi-scale Component Dictionaries (ECCV 2020)
915 stars 215 forks source link

Step 3: Error #11

Closed mrsatana666 closed 4 years ago

mrsatana666 commented 4 years ago

Hello guys!

Tell me what could be wrong? How can I enable debugging?

Or does the code not work under Windows?

image

csxmli2016 commented 4 years ago

Hello guys!

Tell me what could be wrong? How can I enable debugging?

Or does the code not work under Windows?

image

Hi, I add 'try' to capture the error in running the model in line 248. You can comment them to see what happened.

csxmli2016 commented 4 years ago

Hello guys!

Tell me what could be wrong? How can I enable debugging?

Or does the code not work under Windows?

image

Hi, I have updated the code in line 248 by printing the exception information. You can try it again and check what is wrong with the current one.

mrsatana666 commented 4 years ago

Hello guys! Tell me what could be wrong? How can I enable debugging? Or does the code not work under Windows? image

Hi, I have updated the code in line 248 by printing the exception information. You can try it again and check what is wrong with the current one.

Thx! Memory GPU :(

RuntimeError: CUDA out of memory. Tried to allocate 758.00 MiB (GPU 0; 4.00 GiB total capacity; 2.10 GiB already allocated; 310.67 MiB free; 2.33 GiB reserved in total by PyTorch)

mrsatana666 commented 4 years ago

Cpu mode wrote error

Traceback (most recent call last): File "test_FaceDict.py", line 251, in save_crop(visuals,os.path.join(SaveRestorePath,ImgName)) File "C:_remini\DFDNet-whole\util\visualizer.py", line 47, in save_crop im = util.tensor2im(im_data) AttributeError: module 'util' has no attribute 'tensor2im'

Say, please, what do meane?

csxmli2016 commented 4 years ago

Cpu mode wrote error

Traceback (most recent call last): File "test_FaceDict.py", line 251, in save_crop(visuals,os.path.join(SaveRestorePath,ImgName)) File "C:_remini\DFDNet-whole\util\visualizer.py", line 47, in save_crop im = util.tensor2im(im_data) AttributeError: module 'util' has no attribute 'tensor2im'

Say, please, what do meane?

Hi, it runs successfully in my computer on cpu mode. I also note that in the file ./util/util.py, it has the definition of ``tensor2im. Can you debug it to check whether it can load this function?

mrsatana666 commented 4 years ago

I solved problem =)I replaced line 5 "import util " the "from util import util" It's work! :)

Tell me, is it possible to run the code using GPU (1050TI)?

csxmli2016 commented 4 years ago

I solved problem =)I replaced line 5 "import util " the "from util import util" It's work! :)

Tell me, is it possible to run the code using GPU (1050TI)?

Hi, I did not have 1050TI, thus I am not sure whether it can work.

mrsatana666 commented 4 years ago

I solved problem =)I replaced line 5 "import util " the "from util import util" It's work! :) Tell me, is it possible to run the code using GPU (1050TI)?

Hi, I did not have 1050TI, thus I am not sure whether it can work.

Hi, please tell me which video card do you have?

csxmli2016 commented 4 years ago

I solved problem =)I replaced line 5 "import util " the "from util import util" It's work! :) Tell me, is it possible to run the code using GPU (1050TI)?

Hi, I did not have 1050TI, thus I am not sure whether it can work.

Hi, please tell me which video card do you have?

Currently, I use RTX 2080 Ti.

mrsatana666 commented 4 years ago

I solved problem =)I replaced line 5 "import util " the "from util import util" It's work! :) Tell me, is it possible to run the code using GPU (1050TI)?

Hi, I did not have 1050TI, thus I am not sure whether it can work.

Hi, please tell me which video card do you have?

Currently, I use RTX 2080 Ti.

Thx! And thx for your work! really looking forward to the opportunity to work with multiple faces =)

csxmli2016 commented 4 years ago

I solved problem =)I replaced line 5 "import util " the "from util import util" It's work! :) Tell me, is it possible to run the code using GPU (1050TI)?

Hi, I did not have 1050TI, thus I am not sure whether it can work.

Hi, please tell me which video card do you have?

Currently, I use RTX 2080 Ti.

Thx! And thx for your work! really looking forward to the opportunity to work with multiple faces =)

Hi, I plan to achieve this model on multiple faces when I am free. Maybe the next several months.