showlab / Image2Paragraph

[A toolbox for fun.] Transform Image into Unique Paragraph with ChatGPT, BLIP2, OFA, GRIT, Segment Anything, ControlNet.
Apache License 2.0
789 stars 53 forks source link

pydantic #30

Closed cloverGithub closed 1 year ago

cloverGithub commented 1 year ago

in pydantic.fields.ModelField._type_analysis:550
TypeError: issubclass() arg 1 must be a class

Anyone with this issue, can advise how to resolve?

ee2110 commented 1 year ago

Hi @cloverGithub , I have also encountered same issue when I try to run on new machine, but I can use the tool before this in another machine, could you help to advise how do you solve this error? thank you

cloverGithub commented 1 year ago

Hi, as it has been a while, i can't fully remember how i fixed it. I think i followed https://github.com/pydantic/pydantic/issues/545 , i.e. fix the type_extensions package. Hope this helps. Thanks.