Giter VIP home page Giter VIP logo

Comments (11)

tuning12 avatar tuning12 commented on August 10, 2024 3

Hi, I have tried to fix this problem.
I tried to replace the defination of class 'ImageSketcher' in utils/markdown_utils, and it started to show the output picture.

class ImageSketcher(gr.Image):

    is_template = True  # Magic to make this work with gradio.Block, don't remove unless you know what you're doing.

    def __init__(self, **kwargs):
        super().__init__(tool='boxes', **kwargs)

    def preprocess(self, x):
        if x is None:
            return x
        self.DEFAULT_TEMP_DIR = 'gradio_out/' #Make Dir if required
        if self.tool == 'boxes' and self.source in ['upload', 'webcam']:
            if isinstance(x, str):
                x = super().preprocess(x)
                x = {'image': x, 'boxes': []}
            else:
                assert isinstance(x, dict)
                assert isinstance(x['image'], str)
                assert isinstance(x['boxes'], list)
        return x

from groundinglmm.

hsb1995 avatar hsb1995 commented on August 10, 2024

I have followed your instructions step by step and still found the above problem. Could you please explain, Professor? Thank you

from groundinglmm.

hsb1995 avatar hsb1995 commented on August 10, 2024

@hanoonaR

from groundinglmm.

hanoonaR avatar hanoonaR commented on August 10, 2024

Hi @hsb1995 ,

Thank you for your interest in our work. It seems the issue is related to the Gradio installation for our demo. We've updated the system requirements system requirements in our demo documentation. Please make sure you are using the correct versions of Gradio and Gradio-Client:

  • Gradio version 3.35.2
  • Gradio-client version 0.2.7

In addition, we've provided a conda environment setup in a .zip file. You can follow the installation steps outlined in install.md to configure the environment properly.

If the problem persists after these steps, please let us know. We're here to assist. Thank you.

from groundinglmm.

hsb1995 avatar hsb1995 commented on August 10, 2024

Dear author, hello. I have made the necessary changes according to your request, but the current issue is that I keep spinning and cannot generate a reply. And it cannot be framed in the local webpage image. Could you please again.
image

This error is reported in the code:There is no problem with the environment this time
image
image

from groundinglmm.

sahalshajim avatar sahalshajim commented on August 10, 2024

Hi @hsb1995

Please install pydantic==1.10.12 and pydantic-core==2.0.1.

pip install pydantic==1.10.12
pip install pydantic-core==2.0.1

This is updated in the requirements.txt file as well.
Thank you for pointing it out.

from groundinglmm.

Songlinlsl avatar Songlinlsl commented on August 10, 2024

Same problem as you met in the beginning. The gradio and pydantic version are same as the requirements mentioned. do you solve the problem? @hsb1995

from groundinglmm.

hsb1995 avatar hsb1995 commented on August 10, 2024

Same problem as you met in the beginning. The gradio and pydantic version are same as the requirements mentioned. do you solve the problem? @hsb1995

Follow the above steps to solve the problem

from groundinglmm.

remvanthull avatar remvanthull commented on August 10, 2024

I followed the steps above, but the problem still persists for me...

from groundinglmm.

mmaaz60 avatar mmaaz60 commented on August 10, 2024

Hi @remvanthull,

Thank you for your interest in our work. Can you please double check the version of pydantic and gradio as below?

pydantic==1.10.12
pydantic-core==2.0.1
gradio==3.35.2
gradio-client==0.2.7

In case if your versions matches with the above, please share the exact steps you followed to setup the environment so that we can help further. Thank you.

from groundinglmm.

remvanthull avatar remvanthull commented on August 10, 2024

This solved it for me, thanks!!

from groundinglmm.

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.