LeviFiction wrote:The latest version I was able to get working without issue was version 1.9. Anything after that complained of an unexpected argument. And I don't have time to investigate that. Do you want to try 1.9?
Hello Levi,
I'd be willing to try 1.9 and report back. Can easily revert back to 1.5.
Tnx,
Ira
PSP 2019U on my desktop with Win 10 Pro; PSP2023U on my laptop with Win 11 Home, each with GFRX, PicToPaint, Topaz ReMask, BenVista PhotoZoom 7 and a few personal scripts.
So, I found the old tests I sent you iraisok, and it included a copy of Tensorflow 1.5 to 1.12. It was self-compiled so I think that's why it worked as a test, but not as a drop-in for the plugin. And that all the newer libraries failed for you. So I don't think 1.9 will work.
LeviFiction wrote:So, I found the old tests I sent you iraisok, and it included a copy of Tensorflow 1.5 to 1.12. It was self-compiled so I think that's why it worked as a test, but not as a drop-in for the plugin. And that all the newer libraries failed for you. So I don't think 1.9 will work.
1.9 is the newest version I was able to get to work with a simple drop-in-place.
Levi,
As you expected, 1.9 does not run for me. TensorFlow 1.5 with your mods to PTP run beautifully!
Thanks.
Ira
PSP 2019U on my desktop with Win 10 Pro; PSP2023U on my laptop with Win 11 Home, each with GFRX, PicToPaint, Topaz ReMask, BenVista PhotoZoom 7 and a few personal scripts.
I've installed the TensorFlow 1.5 folder on my system, but am still having issues with Pic-to-Paint not working. Here is the result I got from the Developer Tool with 1.5 running:
Command failed: C:\Program Files (x86)\Pic to Painting\resources\app\app\nnart\nnart_prep_cmd.exe --path D:\Temporary Files\PicToPainting\input\ --input D:\Temporary --output .png
Traceback (most recent call last):
File "C:\Python36\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14, in run
File "C:\Python36\lib\site-packages\cx_Freeze\initscripts\Console.py", line 26, in run
File "nnart_prep_cmd.py", line 19, in <module>
File "nnart_prep_cmd.py", line 14, in main
File "C:\_source\HappyTree\HappyTree\nnart\backend\nnart_utils.py", line 5, in load_image
File "C:\Python36\lib\site-packages\PIL\Image.py", line 2543, in open
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\Temporary'
index.js:159 g_previewimage=file:///D:/Temporary%20Files/PicToPainting/input/preview.png
/D:/Temporary%20Files/PicToPainting/input/preview.png:1 GET file:///D:/Temporary%20Files/PicToPainting/input/preview.png net::ERR_FILE_NOT_FOUND
index.js:48 show_spiner
index.js:182 file:///D:/Temporary%20Files/PicToPainting/input/preview.png
index.js:92 (10) ["--input", "D:\Temporary Files\PicToPainting\input\preview.png", "--output", "D:\Temporary Files\PicToPainting\output\nnart_001", "--presetpath", "C:\Program Files (x86)\Pic to Painting\resources\app\app\presets", "--preset", "nnart_001", "--weight", "1"]
index.js:36 exec error: Error: Command failed: C:\Program Files (x86)\Pic to Painting\resources\app\app\nnart\nnart_preview_cmd.exe --input D:\Temporary Files\PicToPainting\input\preview.png --output D:\Temporary Files\PicToPainting\output\nnart_001 --presetpath C:\Program Files (x86)\Pic to Painting\resources\app\app\presets --preset nnart_001 --weight 1
Traceback (most recent call last):
File "C:\Python36\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14, in run
File "C:\Python36\lib\site-packages\cx_Freeze\initscripts\Console.py", line 26, in run
File "nnart_preview_cmd.py", line 27, in <module>
File "nnart_preview_cmd.py", line 17, in main
File "C:\_source\HappyTree\HappyTree\nnart\backend\nnart_utils.py", line 5, in load_image
File "C:\Python36\lib\site-packages\PIL\Image.py", line 2543, in open
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\Temporary Files\\PicToPainting\\input\\preview.png'
Yes, it's looking in the wrong place for your files. It has nothing to do with tensorflow. It's looking for them in the D drive. How do you have your computer setup? Do you have two different hdds? Where does %appdata% send you if you put it into your file explorer address bar?
PROBLEM SOLVED! My Temp folders on the D: drive contained spaces in the names. Apparently, a 'no-no'. I renamed them by removing the spaces, and now (along with TensorFlow 1.5), Pic-to-Painting is working as it should!
Hi, I replaced the TensorFlow 1.5 and this is the result from the Developer Tool ->
index.js:48 remove_folders
index.js:188 g_previewimage=file:///C:/Users/u---u/AppData/Local/Temp/Pic-To-Painting/input/preview.png
index.js:64 exec error: Error: Command failed: C:\Program Files\Pic-To-Painting\resources\app\app\nnart\nnart_generate_cache_cmd.exe --input C:\Users\upggu\AppData\Local\Temp\Pic-To-Painting\input\preview.png --presetpath C:\Program Files\Pic-To-Painting\resources\app\app\presets --cache_dir C:\Users\upggu\AppData\Local\Temp\Pic-To-Painting\output/
Traceback (most recent call last):
File "C:\Python36\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14, in run
File "C:\Python36\lib\site-packages\cx_Freeze\initscripts\Console.py", line 26, in run
File "nnart_generate_cache_cmd.py", line 3, in <module>
File "C:\_source\HappyTree\HappyTree\nnart\backend\nnart_modules.py", line 1, in <module>
ModuleNotFoundError: No module named 'tensorflow'
1. What did you “replace” Tensorflow 1.5 with? I think you meant you replaced 1.7 with 1.5? If so, goo start.
2. Without caring about your PC or OS if you can send a file list that from above a level where Tensor pflow is installed, I’d compare with my installation that works with 1.5 that does not with 1.7.
3.if Levifiction reads your post, he is likely to zero in on your problem so, you could wait for that?
Edit: I just attached a file list Directory of C:\Program Files\Pic-To-Painting\resources\app\app\nnart\lib showing all lower folders and files. Check for differences with your installation. Get back please. Just curious if I have helped you?
Ira
PSP 2019U on my desktop with Win 10 Pro; PSP2023U on my laptop with Win 11 Home, each with GFRX, PicToPaint, Topaz ReMask, BenVista PhotoZoom 7 and a few personal scripts.
Hi, iraisok thanks for the reply. I uninstalled Corel PSP 2020 Ultimate and ran CCleaner. I reinstalled Corel PSP 2020 Ultimate and Pic-to-paint wheel spins with no result. I followed LeviFiction instructions with the Tensorflow 1.5. and this is the result from the Developer Tool ->
index.js:48 remove_folders
index.js:188 g_previewimage=file:///C:/Users/upggu/AppData/Local/Temp/Pic-To-Painting/input/preview.png
index.js:64 exec error: Error: Command failed: C:\Program Files\Pic-To-Painting\resources\app\app\nnart\nnart_generate_cache_cmd.exe --input C:\Users\upggu\AppData\Local\Temp\Pic-To-Painting\input\preview.png --presetpath C:\Program Files\Pic-To-Painting\resources\app\app\presets --cache_dir C:\Users\upggu\AppData\Local\Temp\Pic-To-Painting\output/
Traceback (most recent call last):
File "C:\Python36\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14, in run
File "C:\Python36\lib\site-packages\cx_Freeze\initscripts\Console.py", line 26, in run
File "nnart_generate_cache_cmd.py", line 3, in <module>
File "C:\_source\HappyTree\HappyTree\nnart\backend\nnart_modules.py", line 1, in <module>
ModuleNotFoundError: No module named 'tensorflow'
execCommand.execFile @ index.js:64
exithandler @ child_process.js:289
emitTwo @ events.js:125
emit @ events.js:213
maybeClose @ internal/child_process.js:921
stream.socket.on @ internal/child_process.js:348
emitOne @ events.js:115
emit @ events.js:210
_handle.close @ net.js:549
index.js:93 action=apply
index.js:106 C:\Users\upggu\AppData\Local\Temp\Pic-to-Painting\session_338105578.png
index.js:112 C:\Users\upggu\AppData\Local\Temp\Pic-To-Painting\output\nnart_012_0.png
index.js:121 (6) ["--input", "C:\Users\upggu\AppData\Local\Temp\Pic-to-Painting\session_338105578.png", "--output", "C:\Users\upggu\AppData\Local\Temp\Pic-to-Painting\session_338105578.png", "--preview", "C:\Users\upggu\AppData\Local\Temp\Pic-To-Painting\output\nnart_012_0.png"]
index.js:64 exec error: Error: Command failed: C:\Program Files\Pic-To-Painting\resources\app\app\nnart\nnart_apply_cmd.exe --input C:\Users\upggu\AppData\Local\Temp\Pic-to-Painting\session_338105578.png --output C:\Users\upggu\AppData\Local\Temp\Pic-to-Painting\session_338105578.png --preview C:\Users\upggu\AppData\Local\Temp\Pic-To-Painting\output\nnart_012_0.png
Traceback (most recent call last):
File "C:\Python36\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14, in run
File "C:\Python36\lib\site-packages\cx_Freeze\initscripts\Console.py", line 26, in run
File "nnart_apply_cmd.py", line 1, in <module>
ModuleNotFoundError: No module named 'tensorflow'
Normally the error is something like "cannot load dll" when the module fails to load properly showing an incompatibility.
While it is possible that 1.5 won't work for you either that's not the error you're getting.
That error says it cannot find the tensorflow module. This usually means either the uncompressed folder isn't correctly named or there is some other reason it can't find the init file.
The folder should be named tensorflow and the init file should be right inside, not a level or extra folder deep. I am on a walk so I don't have images to show. But is that what you see?
Levi - hence my bruteforce approach to comparing with a WORKING structure. but you know all....
Ira
PSP 2019U on my desktop with Win 10 Pro; PSP2023U on my laptop with Win 11 Home, each with GFRX, PicToPaint, Topaz ReMask, BenVista PhotoZoom 7 and a few personal scripts.
Instead of starting a new post, can I just say that I am seeing the same spinning wheel and I cannot see an answer to the problem. My question would be, "Ok, so what steps do I need to take now?"
.
It appears that Pic-to-Painting has caused a huge lot of problems. After reading a bunch I now realize that in my chat session I was given only the 32bit version. As you can see I am running a W10 system. How do I get the 64bit version if my chat session is no longer available?
Yes I can open a new chat session, but can anyone verify that will work with Pic-to-Painting just showing the "SPINNING WHEEL" when I use the plugin?
Suggestion: when searching for a post that has an answer, am I missing the button that is clickable for "View Answers/Solutions" within posts?