Jump to content

tomye

Members
  • Content Count

    35
  • Joined

  • Last visited

Community Reputation

1 Neutral

Technical Information

  • Delphi-Version
    Delphi 2 - 7

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. i worte a python script , it can be run on PyCharm very well but can not be run on P4D, always get an error: OSError: [WinError 182] The operating system cannot run %1。 Error loading "C:\ProgramData\Miniconda3\envs\YoloV8\lib\site-packages\torch\lib\nvfuser_codegen.dll" or one of its dependencies. i found the nvfuser_codegen.dll and checked it all dependencies does exits, howevery if missing dependencies why i can run on PyCharm? I have tried all the methods I can try, but they are all failed. anyone can help me ?
  2. Hi, anyone knows how to make the window style when i using a Stylebook component? it does not work on windows just works on components, is there any way to resolve it? Thanks for all Tom
  3. quick view the forked Android project, seems very complex, must use Delphi4Python ? and the iOS reference, i couldn't find anything about how to deploy the Python on iOS, just found some P4D FMX demos at https://github.com/pyscripter/python4delphi/tree/master/Demos/FMX these demos can be run on iOS ? thank you
  4. Recently, I have been using P4D for a long time and it is becoming more and more convenient. I would like to ask whether the P4D supports Android and iOS? if not do you have any planning ? thanks for creating so good stuff. Tom
  5. Yes, Torch is much better than onnx, i have tested. yesterday, i droped the thread mode and create a new project without thread mode but still got this error: very strange, if i run the onnx script first and then run the torch script , then will get this error , but if i run the torch script first and then run the onnx script , all are ok i think it should be an old version of CUDA dlls is called if the onnx script runs first and torch does not support this version but the onnxruntime supports the high version which the torch is used, that's why if i run the torch script first everything is ok.
  6. tomye

    First Python + DelphiVCL Program

    dear shineworld, If you don't involve a lot of deep learning capabilities, i recommend the MITV Lab Packages, all are native compilation , does not need Python https://mitov.com/products/visionlab#overview
  7. I don't want it to be that complicated either, but Python's performance is too low if i don't use thread to run , the speed and GPU useage % as below: if i lanuch 2 threads : if i lanuch 3 threads: single fps will be reduced but Avg fps will be raised if i use 3 threads so this is only way i can figure out to up the speed. 😞 acutally, i have finished the thread mode program running in the past months but recently, i changed the AI engine from ONNX to TORCH, after installed pytorch everything becomes unsteady, but if i switch the pythone envirnoment to old path everything comes back , very steady. i feel the issue comes from CUDA apis and CUDA envirnoment but i still can not find it out, so come here for help . 😞
  8. i found this issue comes from the P4D thread mode i am not sure if it is P4D BUG because now i can run the script in P4D Demo01 after i PIP INSTALL PYSQLITE3, but still can not be run in my project, will raise an error: could not find cudnn_adv_infer64_8.dll or one of its dependent file the cudnn_adv_infer64_8.dll and all of its dependent files are existing as i said, i set TPythonThread.Py_Begin_Allow_Threads; in my code, and all running are in thread mode, i don't know if the Python path is lost in thread mode
  9. Yes, i did , but does not work , so i post the question on here does the P4D not support LOADDLL and UNLOADDLL dynamic call ? for example: i launch the exe and call the LoadDLL function at first time after run one script i need reset a new DLL path and call LoadDLL again, how to do like this?
  10. if write like this , got an error : There is already one instance of TPythonEngine running the P4D can not change Python DLLs in runtime ?
  11. tomye

    First Python + DelphiVCL Program

    dear shineworld may i ask you how old are you?
  12. my project is 64-bit the anaconda which i installed is 64-bit the python dependent libraries are all 64-bit
  13. actually , i don't know why the torch uses the SQLite, however , i searched the DLL files, they are all there and all of them are 64bit and this error message ( Not a valid win32 application ) is only appear on P4D Demo01, but in my project, there is another error message the error message is : OSError: [WinError 127] The specified program could not be found same script i could run it in Python envirnoment, but can not be run in P4D , BTW, my project uses P4D thread mode ( TPythonThread.Py_Begin_Allow_Threads; ) and then i test the script in P4D Demo01, got an another error message: Not a valid win32 application 😞
  14. wriiten a scipt, it can be run in Python environment but run in P4D, got an error anyone knows?
×