GithubHelp home page GithubHelp logo

choiking10 / koclip Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaketae/koclip

0.0 0.0 0.0 28.56 MB

KoCLIP: Korean port of OpenAI CLIP, in Flax

Home Page: https://tinyurl.com/koclip-app

License: Apache License 2.0

Shell 0.07% Python 4.32% Makefile 0.01% Jupyter Notebook 95.60%

koclip's People

Contributors

choiking10 avatar guijinson avatar jaketae avatar minsik-ai avatar

koclip's Issues

do_init ์ด์Šˆ

image

TypeError                                 Traceback (most recent call last)
Cell In[1], line 7
      3 from PIL import Image
      5 from koclip import load_koclip
----> 7 model, processor = load_koclip("koclip-base")

File ~/project/koclip/koclip/utils.py:9, in load_koclip(model_name)
      7 def load_koclip(model_name):
      8     assert model_name in {"koclip-base", "koclip-large"}
----> 9     model = FlaxHybridCLIP.from_pretrained(f"koclip/{model_name}")
     10     processor = FlaxHybridCLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
     11     processor.tokenizer = AutoTokenizer.from_pretrained("klue/roberta-large")

File ~/project/koclip/venv/lib/python3.9/site-packages/transformers/modeling_flax_utils.py:808, in FlaxPreTrainedModel.from_pretrained(cls, pretrained_model_name_or_path, dtype, *model_args, **kwargs)
    792     resolved_archive_file, _ = get_checkpoint_shard_files(
    793         pretrained_model_name_or_path,
    794         resolved_archive_file,
   (...)
    804         _commit_hash=commit_hash,
    805     )
    807 # init random models
--> 808 model = cls(config, *model_args, _do_init=_do_init, **model_kwargs)
    810 if from_pt:
    811     state = load_pytorch_checkpoint_in_flax_state_dict(model, resolved_archive_file, is_sharded)

File ~/project/koclip/koclip/model.py:161, in FlaxHybridCLIP.__init__(self, config, input_shape, seed, dtype, **kwargs)
    150 if input_shape is None:
    151     input_shape = (
    152         (1, 1),
    153         (
   (...)
    158         ),
    159     )
--> 161 module = self.module_class(config=config, dtype=dtype, **kwargs)
    162 super().__init__(
    163     config, module, input_shape=input_shape, seed=seed, dtype=dtype
    164 )

TypeError: __init__() got an unexpected keyword argument '_do_init'

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.