NsfwSpy/NsfwSpy.NET

Predict Take a long time

Closed this issue · 9 comments

Thanks for your great library but i use this library in web api project and it take a long time and at the end it cant predict anything. i run your test code and its not work.

Hey,

Thanks for the first issue. What are the specs (CPU, GPU, RAM, OS) of the system you're running NsfwSpy on?

Core I7-12700H
16 GB RAM
Windows 11 pro
OS build 22621.1848
NVIDIA GeForce RTX 3060 Laptop GPU

That should be plenty enough power wise. Does an exception get thrown? If you put a breakpoint in the code, does it ever get past the classification?

No i dont get any exception. When i run my app it take 8 minutes to go my breakpoint and after this I waited for an hour but nothing happened.

Do you know if you have a version of CUDA installed on your system? You should be able to check by running the following command in a command prompt window:
nvcc --version

Yes, I had installed it
This is a command result
"nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:12:52_Pacific_Daylight_Time_2019
Cuda compilation tools, release 10.1, V10.1.243"

That looks to be right too. Might be worth trying to use it in a Console application as that should show some logging and may give a hint as to what is going wrong.

I run it in Linux and it worked correctly. Incredible

Wonder what the issue was for your Windows setup. If you ever get round to running it as a Console application on Windows and get any useful logs, just let me know and I can continue investigating 😊