Mountchicken commited on
Commit
a3eb2e2
·
verified ·
1 Parent(s): 3bf5a16

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -17
README.md CHANGED
@@ -1,12 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
2
  <div align=center>
3
  <img src="assets/teaser.jpg" width=600 >
4
  </div>
5
 
6
-
7
-
8
- <div align=center>
9
-
10
  ----
11
 
12
  # 1. Introduction 📚
@@ -25,13 +34,15 @@ understanding.
25
  ```bash
26
  conda install -n chatrex python=3.9
27
  pip install torch==2.1.2 torchvision==0.16.2 --index-url https://download.pytorch.org/whl/cu121
 
 
28
  pip install -v -e .
29
  # install deformable attention for universal proposal network
30
  cd chatrex/upn/ops
31
  pip install -v -e .
32
  ```
33
 
34
- ## 2.1 Download Pre-trained Models
35
  We provide model checkpoints for both the ***Universal Proposal Network (UPN)*** and the ***ChatRex model***. You can download the pre-trained models from the following links:
36
  - [UPN Checkpoint](https://github.com/IDEA-Research/ChatRex/releases/download/upn-large/upn_large.pth)
37
  - [ChatRex-7B Checkpoint](https://huggingface.co/IDEA-Research/ChatRex-7B)
@@ -42,10 +53,6 @@ mkdir checkpoints
42
  mkdir checkpoints/upn
43
  # download UPN checkpoint
44
  wget -O checkpoints/upn/upn_large.pth https://github.com/IDEA-Research/ChatRex/releases/download/upn-large/upn_large.pth
45
- # download ChatRex checkpoint from huggingface IDEA-Research/ChatRex-7B
46
- # Download ChatRex checkpoint from Hugging Face
47
- git lfs install
48
- git clone https://huggingface.co/IDEA-Research/ChatRex-7B checkpoints/chatrex
49
  ```
50
 
51
  ## 2.2 Verify Installation
@@ -165,8 +172,6 @@ Please detect person in the car; cat below the table in this image. Answer the q
165
  <details close>
166
  <summary><strong>Example Code</strong></summary>
167
 
168
- - [Example Code in python file](tests/test_chatrex_detection.py)
169
-
170
  ```python
171
  import torch
172
  from PIL import Image
@@ -283,8 +288,6 @@ Can you provide me with a one sentence of <obji>? Answer the question with one s
283
  <details close>
284
  <summary><strong>Example Code</strong></summary>
285
 
286
- - [Example Code in python file](tests/test_chatrex_region_caption.py)
287
-
288
  ```python
289
  import torch
290
  from PIL import Image
@@ -377,8 +380,6 @@ Please provide a detailed description of the image and detect all the mentioned
377
  <details close>
378
  <summary><strong>Example Code</strong></summary>
379
 
380
- - [Example Code in python file](tests/test_chatrex_grounded_image_caption.py)
381
-
382
  ```python
383
  import torch
384
  from PIL import Image
@@ -481,8 +482,6 @@ Answer the question in Grounded format. Question
481
  <details close>
482
  <summary><strong>Example Code</strong></summary>
483
 
484
- - [Example Code in python file](tests/test_chatrex_grounded_conversation.py)
485
-
486
  ```python
487
  import torch
488
  from PIL import Image
 
1
+ ---
2
+ language:
3
+ - en
4
+ base_model:
5
+ - lmsys/vicuna-7b-v1.5
6
+ - openai/clip-vit-large-patch14
7
+ - laion/CLIP-convnext_large_d.laion2B-s26B-b102K-augreg
8
+ pipeline_tag: image-text-to-text
9
+ tags:
10
+ - chatrex
11
+ - upn
12
+ ---
13
+
14
 
15
  <div align=center>
16
  <img src="assets/teaser.jpg" width=600 >
17
  </div>
18
 
 
 
 
 
19
  ----
20
 
21
  # 1. Introduction 📚
 
34
  ```bash
35
  conda install -n chatrex python=3.9
36
  pip install torch==2.1.2 torchvision==0.16.2 --index-url https://download.pytorch.org/whl/cu121
37
+ git clone https://github.com/IDEA-Research/ChatRex.git
38
+ cd ChatRex
39
  pip install -v -e .
40
  # install deformable attention for universal proposal network
41
  cd chatrex/upn/ops
42
  pip install -v -e .
43
  ```
44
 
45
+ ## 2.1 Download Pre-trained UPN Models
46
  We provide model checkpoints for both the ***Universal Proposal Network (UPN)*** and the ***ChatRex model***. You can download the pre-trained models from the following links:
47
  - [UPN Checkpoint](https://github.com/IDEA-Research/ChatRex/releases/download/upn-large/upn_large.pth)
48
  - [ChatRex-7B Checkpoint](https://huggingface.co/IDEA-Research/ChatRex-7B)
 
53
  mkdir checkpoints/upn
54
  # download UPN checkpoint
55
  wget -O checkpoints/upn/upn_large.pth https://github.com/IDEA-Research/ChatRex/releases/download/upn-large/upn_large.pth
 
 
 
 
56
  ```
57
 
58
  ## 2.2 Verify Installation
 
172
  <details close>
173
  <summary><strong>Example Code</strong></summary>
174
 
 
 
175
  ```python
176
  import torch
177
  from PIL import Image
 
288
  <details close>
289
  <summary><strong>Example Code</strong></summary>
290
 
 
 
291
  ```python
292
  import torch
293
  from PIL import Image
 
380
  <details close>
381
  <summary><strong>Example Code</strong></summary>
382
 
 
 
383
  ```python
384
  import torch
385
  from PIL import Image
 
482
  <details close>
483
  <summary><strong>Example Code</strong></summary>
484
 
 
 
485
  ```python
486
  import torch
487
  from PIL import Image