Comments (11)
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.
I have followed your instructions step by step and still found the above problem. Could you please explain, Professor? Thank you
from groundinglmm.
from groundinglmm.
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.
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.
This error is reported in the code:There is no problem with the environment this time
from groundinglmm.
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.
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.
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.
I followed the steps above, but the problem still persists for me...
from groundinglmm.
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.
This solved it for me, thanks!!
from groundinglmm.
Related Issues (20)
- Some bugs in the GranD_ReferringSegm_ds.py
- Online Demo Down HOT 1
- Fine-tuning Grounded Conversation Generation (GCG) Task HOT 4
- token_positives HOT 2
- assertion error cur_len == total_len HOT 1
- can not install mmcv HOT 2
- Can not find file for glamm_conda_env.zip in the given Google Drive Link HOT 4
- Training on New Data HOT 2
- training V-L and L-P projection layer HOT 1
- Can not download the train.json file for visual genome
- How can I let the model receive multiple images at once HOT 1
- How should I train on the GranD dataset
- How can I finetune on combined tasks?
- Confusing referring segmentation results. HOT 1
- mmcv failed to install HOT 1
- AssertionError when running a demo
- Offline demo error
- Why is it that during the computation of segmentation results, the model() function is used instead of model.generate()? Wouldn't this mean that when predicting the next token, the information viewed is from the actual token rather than the predicted one? HOT 1
- What are the ‘categories’ in the dataset used for? When would I use them?
- How to Construct a Ground-Truth Test Dataset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from groundinglmm.