Giter Site home page Giter Site logo

Comments (15)

tarekwiz avatar tarekwiz commented on June 11, 2024

Nevermind I see the workflow collecting captcha files and I also saw this project https://github.com/beiyuouo/hcaptcha-model-factory for automatic model creation, so why is this not a part of the workflow. Maybe we can use GPT for classifieng which classes are "yes" or "bad" @beiyuouo . What do you guys think?

from hcaptcha-challenger.

QIN2DIM avatar QIN2DIM commented on June 11, 2024

You can perform the zero-shot image binary classification task by modifying the modelhub instance variable. You don't need to train the model yourself. CLIP can already handle all image classification tasks.

from hcaptcha-challenger.

tarekwiz avatar tarekwiz commented on June 11, 2024

I've tried it but it doesn't work well. Can you show me an example using it with "Click on the animals that don't walk"
edit: maybe i'm using it incorrectly, hence why I asked for an example

from hcaptcha-challenger.

tarekwiz avatar tarekwiz commented on June 11, 2024

I found why. There's an error in your code components/common.py L55 Should be "ket in label" not "label in ket"

from hcaptcha-challenger.

tarekwiz avatar tarekwiz commented on June 11, 2024

@QIN2DIM I opened a pull request. Please merge

from hcaptcha-challenger.

QIN2DIM avatar QIN2DIM commented on June 11, 2024

For CLIP, I have not provided a better reference case.

For CLIP prompt,I offer two trigger options.clip_candidates and datalake, at the moment I prefer datalake.

I plan to use clip_candidates to handle nested types of image binary classification tasks, i.e., challenges where the prompt is invariant but the positive sample can be constantly updated.

from hcaptcha-challenger.

QIN2DIM avatar QIN2DIM commented on June 11, 2024

There are still some issues with clip_candidates, and I will subsequently change its data structure, which currently struggles to cope with the complex demands of prompt orchestration. I'd like it to be able to divide and conquer, and to further reduce inference pressure.

from hcaptcha-challenger.

QIN2DIM avatar QIN2DIM commented on June 11, 2024

The default is to use the RESNET-50 model, which is behind the times in terms of inference performance.

I will write a script later to determine if current hardware resources can run a better performing CLIP model.

from hcaptcha-challenger.

QIN2DIM avatar QIN2DIM commented on June 11, 2024

DEFAULT_CLIP_VISUAL_MODEL: str = "visual_CLIP_RN50.openai.onnx"
DEFAULT_CLIP_TEXTUAL_MODEL: str = "textual_CLIP_RN50.openai.onnx"
"""
Available Model
--- 1180+ MiB
DEFAULT_CLIP_VISUAL_MODEL: str = "visual_CLIP_ViT-B-32.openai.onnx"
DEFAULT_CLIP_TEXTUAL_MODEL: str = "textual_CLIP_ViT-B-32.openai.onnx"
--- 658.3 MiB
DEFAULT_CLIP_VISUAL_MODEL: str = "visual_CLIP_RN50.openai.onnx"
DEFAULT_CLIP_TEXTUAL_MODEL: str = "textual_CLIP_RN50.openai.onnx"
--- 3300+ MiB
DEFAULT_CLIP_VISUAL_MODEL: str = "visual_CLIP-ViT-L-14-DataComp.XL-s13B-b90K.onnx"
DEFAULT_CLIP_TEXTUAL_MODEL: str = "textual_CLIP-ViT-L-14-DataComp.XL-s13B-b90K.onnx"
"""

from hcaptcha-challenger.

tarekwiz avatar tarekwiz commented on June 11, 2024

I have managed to get clip_candidates to work but I dislike how the first element of the array is the correct one. Nothing indicates that and I had to read the code to identify it.
I think we should work on a CI that converts collected information into CLIP candidates automatically so we don't have to keep track of them manualy.

from hcaptcha-challenger.

QIN2DIM avatar QIN2DIM commented on June 11, 2024

I think we should work on a CI that converts collected information into CLIP candidates automatically so we don't have to keep track of them manualy.

You're right. That's what I want to do.

I have managed to get clip_candidates to work but I dislike how the first element of the array is the correct one. Nothing indicates that and I had to read the code to identify it.

I have provided a datalake orchestration method to orchestrate Positive and Negative for a specific challenge-prompt.

The current data structure for clip_candidates is failing miserably, and I'm already planning to replace it.

from hcaptcha-challenger.

QIN2DIM avatar QIN2DIM commented on June 11, 2024

clip_candidates:

from hcaptcha-challenger.

tarekwiz avatar tarekwiz commented on June 11, 2024

@QIN2DIM PR has been approved but it still hasn't been updated on pypi

from hcaptcha-challenger.

QIN2DIM avatar QIN2DIM commented on June 11, 2024

Updated

Actually, I rewrote clip_candidates about two weeks ago and also solved the current issue. However, that feature needs more testing, and I have been too busy recently.

from hcaptcha-challenger.

harusurv avatar harusurv commented on June 11, 2024

It's failing atm in every challenge :(

from hcaptcha-challenger.

Related Issues (20)

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.