GithubHelp home page GithubHelp logo

engmarchg / fsg-pp Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 2.0 1.68 MB

Fsg-Pp's purpose is to automate profile picture searching using machine learning!

Home Page: https://huggingface.co/spaces/Kyo-Kai/Fsg-Pp

License: GNU Affero General Public License v3.0

Python 81.14% Batchfile 5.71% Shell 3.93% CSS 9.22%
anime classifier automation machine-learning pytorch pictures yolov8 github crop-image deep-learning

fsg-pp's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wootamelon

fsg-pp's Issues

Tried using the preview version and errors

`Traceback (most recent call last):
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\gradio\queueing.py", line 456, in call_prediction
output = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\gradio\route_utils.py", line 232, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\gradio\blocks.py", line 1522, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\gradio\blocks.py", line 1144, in call_function
prediction = await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\gradio\utils.py", line 674, in wrapper
response = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\Fsg_pp.py", line 16, in pix_imgs
driver = driver_instance.create_driver(profile=1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\commands\driver_instance.py", line 38, in create_driver
driver = webdriver.Chrome(options=options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in init
super().init(
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 56, in init
super().init(
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 208, in init
self.start_session(capabilities)
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 292, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 117
Current browser version is 119.0.6045.160 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
Stacktrace:
GetHandleVerifier [0x00007FF7F8367892+54818]
(No symbol) [0x00007FF7F82D6AC2]
(No symbol) [0x00007FF7F818DA3B]
(No symbol) [0x00007FF7F81C0972]
(No symbol) [0x00007FF7F81BFDCE]
(No symbol) [0x00007FF7F81BAA4B]
(No symbol) [0x00007FF7F81B802E]
(No symbol) [0x00007FF7F81F67FB]
(No symbol) [0x00007FF7F81EE883]
(No symbol) [0x00007FF7F81C3691]
(No symbol) [0x00007FF7F81C48D4]
GetHandleVerifier [0x00007FF7F86CB992+3610402]
GetHandleVerifier [0x00007FF7F8721860+3962352]
GetHandleVerifier [0x00007FF7F8719D4F+3930847]
GetHandleVerifier [0x00007FF7F8403646+693206]
(No symbol) [0x00007FF7F82E1628]
(No symbol) [0x00007FF7F82DD934]
(No symbol) [0x00007FF7F82DDA62]
(No symbol) [0x00007FF7F82CE113]
BaseThreadInitThunk [0x00007FF9F4D3257D+29]
RtlUserThreadStart [0x00007FF9F57CAA58+40]

Traceback (most recent call last):
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\gradio\queueing.py", line 456, in call_prediction
output = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\gradio\route_utils.py", line 232, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\gradio\blocks.py", line 1522, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\gradio\blocks.py", line 1144, in call_function
prediction = await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\gradio\utils.py", line 674, in wrapper
response = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\Fsg_pp.py", line 16, in pix_imgs
driver = driver_instance.create_driver(profile=1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\commands\driver_instance.py", line 38, in create_driver
driver = webdriver.Chrome(options=options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in init
super().init(
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 56, in init
super().init(
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 208, in init
self.start_session(capabilities)
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 292, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 117
Current browser version is 119.0.6045.160 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
Stacktrace:
GetHandleVerifier [0x00007FF7F8367892+54818]
(No symbol) [0x00007FF7F82D6AC2]
(No symbol) [0x00007FF7F818DA3B]
(No symbol) [0x00007FF7F81C0972]
(No symbol) [0x00007FF7F81BFDCE]
(No symbol) [0x00007FF7F81BAA4B]
(No symbol) [0x00007FF7F81B802E]
(No symbol) [0x00007FF7F81F67FB]
(No symbol) [0x00007FF7F81EE883]
(No symbol) [0x00007FF7F81C3691]
(No symbol) [0x00007FF7F81C48D4]
GetHandleVerifier [0x00007FF7F86CB992+3610402]
GetHandleVerifier [0x00007FF7F8721860+3962352]
GetHandleVerifier [0x00007FF7F8719D4F+3930847]
GetHandleVerifier [0x00007FF7F8403646+693206]
(No symbol) [0x00007FF7F82E1628]
(No symbol) [0x00007FF7F82DD934]
(No symbol) [0x00007FF7F82DDA62]
(No symbol) [0x00007FF7F82CE113]
BaseThreadInitThunk [0x00007FF9F4D3257D+29]
RtlUserThreadStart [0x00007FF9F57CAA58+40]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\gradio\queueing.py", line 501, in process_events
response = await self.call_prediction(awake_events, batch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Documents\AI Projects\Pfp finder\venv\Lib\site-packages\gradio\queueing.py", line 465, in call_prediction
raise Exception(str(error) if show_error else None) from error
Exception: None`

Sites

Are there anymore sites to search images from? perhaps smth like Yandex Images or something of the sorts?

Cannot login with pixiv

Logging in...
Traceback (most recent call last):
File "C:\Users\midnight\Documents\downloadsvpn29392\Fsg_Pp-1.0.0\Fsg_Pp-1.0.0\venv\Lib\site-packages\gradio\routes.py", line 422, in run_predict
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\midnight\Documents\downloadsvpn29392\Fsg_Pp-1.0.0\Fsg_Pp-1.0.0\venv\Lib\site-packages\gradio\blocks.py", line 1323, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\midnight\Documents\downloadsvpn29392\Fsg_Pp-1.0.0\Fsg_Pp-1.0.0\venv\Lib\site-packages\gradio\blocks.py", line 1051, in call_function
prediction = await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\midnight\Documents\downloadsvpn29392\Fsg_Pp-1.0.0\Fsg_Pp-1.0.0\venv\Lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\midnight\Documents\downloadsvpn29392\Fsg_Pp-1.0.0\Fsg_Pp-1.0.0\venv\Lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "C:\Users\midnight\Documents\downloadsvpn29392\Fsg_Pp-1.0.0\Fsg_Pp-1.0.0\venv\Lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\midnight\Documents\downloadsvpn29392\Fsg_Pp-1.0.0\Fsg_Pp-1.0.0\Fsg_pp.py", line 17, in pix_imgs
imgz = getOrderedPixivImages(driver=driver, exec_path=exec_path, user_search=searchQuery, num_pics=num_pics, num_pages=num_pages,searchTypes=searchTypes,viewRestriction=viewRestriction,imageControl=imageControl, n_likes=n_likes, n_bookmarks=n_bookmarks,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\midnight\Documents\downloadsvpn29392\Fsg_Pp-1.0.0\Fsg_Pp-1.0.0\sites\pixiv.py", line 83, in getOrderedPixivImages
searchQuery(user_search, driver, search_param["bar_search"], isLoggedIn=success_login)
File "C:\Users\midnight\Documents\downloadsvpn29392\Fsg_Pp-1.0.0\Fsg_Pp-1.0.0\commands\universal.py", line 17, in searchQuery
WebDriverWait(driver, timeout=15).until(EC.presence_of_element_located((By.XPATH, elem)))
File "C:\Users\midnight\Documents\downloadsvpn29392\Fsg_Pp-1.0.0\Fsg_Pp-1.0.0\venv\Lib\site-packages\selenium\webdriver\support\wait.py", line 95, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Stacktrace:
Backtrace:
GetHandleVerifier [0x003B8893+48451]
(No symbol) [0x0034B8A1]
(No symbol) [0x00255058]
(No symbol) [0x00280467]
(No symbol) [0x0028069B]
(No symbol) [0x002ADD92]
(No symbol) [0x0029A304]
(No symbol) [0x002AC482]
(No symbol) [0x0029A0B6]
(No symbol) [0x00277E08]
(No symbol) [0x00278F2D]
GetHandleVerifier [0x00618E3A+2540266]
GetHandleVerifier [0x00658959+2801161]
GetHandleVerifier [0x0065295C+2776588]
GetHandleVerifier [0x00442280+612144]
(No symbol) [0x00354F6C]
(No symbol) [0x003511D8]
(No symbol) [0x003512BB]
(No symbol) [0x00344857]
BaseThreadInitThunk [0x770800C9+25]
RtlGetAppContainerNamedObjectPath [0x773A7B4E+286]
RtlGetAppContainerNamedObjectPath [0x773A7B1E+238]

Update?

Has progress stopped on this? if so that's a real shame, I actually enjoyed this project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.