Code Monkey home page Code Monkey logo

Comments (9)

Norian11 avatar Norian11 commented on May 29, 2024 1

Oh wait now it worked even with GPU, the error was that i had set to add custom tag to caption but the custom caption was empty, i set it to dont add. My bad it works perfectly. I think you should make another post on the reddit saying that it can caption with Blip2 in the title, im sure many people are looking for an UI for those models. Great work!

from taggui.

jhc13 avatar jhc13 commented on May 29, 2024

Hi, thanks for letting me know. I removed a few DLLs that seemed to be unnecessary in order to reduce the bundle size (GitHub has a 2 GB file size limit for releases), but it seems that they weren't safe to remove after all. I'll upload a new version with all the DLLs included as fast as possible and let you know.

from taggui.

jhc13 avatar jhc13 commented on May 29, 2024

I released a new version that will hopefully fix the issue: https://github.com/jhc13/taggui/releases/tag/v1.2.1
Could you check if it works now?

from taggui.

Norian11 avatar Norian11 commented on May 29, 2024

Yes now it install perfectly, but when i try to caption with Blip2 its says this, any idea?:
File "torch\nn\modules\module.py", line 797, in _apply
module._apply(fn)
File "torch\nn\modules\module.py", line 797, in _apply
module._apply(fn)
File "torch\nn\modules\module.py", line 797, in _apply
module._apply(fn)
[Previous line repeated 4 more times]
File "torch\nn\modules\module.py", line 820, in _apply
param_applied = fn(param)
^

File "torch\nn\modules\module.py", line 1143, in convert
return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
^

NotImplementedError
:
Cannot copy out of meta tensor; no data!

from taggui.

jhc13 avatar jhc13 commented on May 29, 2024

Does it work if you select CPU? What device are you using?

from taggui.

Norian11 avatar Norian11 commented on May 29, 2024

Sorry i dont know how run it on cpu, if you can tell me i will try. Im using an rtx 2060. By the way i coped incompleted the error code. This is the full one:

Loading BLIP-2 model...
Loading checkpoint shards: 0%| | 0/2 [00:00<?, ?it/s]
Loading checkpoint shards: 50%|##### | 1/2 [00:23<00:23, 23.45s/it]
Loading checkpoint shards: 100%|##########| 2/2 [00:29<00:00, 13.07s/it]
Loading checkpoint shards: 100%|##########| 2/2 [00:29<00:00, 14.63s/it]
Traceback (most recent call last):
File "widgets\blip_2_captioner.py", line 315, in run
File "transformers\modeling_utils.py", line 1900, in to
return super().to(*args, **kwargs)
^

File "torch\nn\modules\module.py", line 1145, in to
return self._apply(convert)
^

File "torch\nn\modules\module.py", line 797, in _apply
module._apply(fn)
File "torch\nn\modules\module.py", line 797, in _apply
module._apply(fn)
File "torch\nn\modules\module.py", line 797, in _apply
module._apply(fn)
[Previous line repeated 4 more times]
File "torch\nn\modules\module.py", line 820, in _apply
param_applied = fn(param)

NotImplementedError
:
Cannot copy out of meta tensor; no data!

from taggui.

jhc13 avatar jhc13 commented on May 29, 2024

You can select CPU here:
cpu

from taggui.

Norian11 avatar Norian11 commented on May 29, 2024

Okay i did it but i got a different error:
The current device_map had weights offloaded to the disk. Please provide an offload_folder for them. Alternatively, make sure you have safetensors installed if the model you are using offers the weights in this format.

from taggui.

Norian11 avatar Norian11 commented on May 29, 2024

By the way there is sort of an error of the iterface because i cant see those options unless i clicked on the floating tab mode because it was cut out of the screen and it cant scroll down
Screenshot 2023-08-01 130423

from taggui.

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.