gowitheflow
commited on
Commit
•
2bff784
1
Parent(s):
be40ae6
Update README.md
Browse files
README.md
CHANGED
@@ -38,7 +38,7 @@ All the training sets involved in our progressive training scheme that we create
|
|
38 |
## Inference
|
39 |
|
40 |
First install the package following our Github Repo. Then define the model, the renderer, and other utils.
|
41 |
-
```
|
42 |
import torch
|
43 |
from PIL import Image
|
44 |
from pixel import (
|
@@ -103,8 +103,8 @@ def image_collator(examples):
|
|
103 |
}
|
104 |
```
|
105 |
|
106 |
-
|
107 |
-
```
|
108 |
texts = ["I love you","I like you"]
|
109 |
|
110 |
inputs = preprocess(texts)
|
|
|
38 |
## Inference
|
39 |
|
40 |
First install the package following our Github Repo. Then define the model, the renderer, and other utils.
|
41 |
+
```python
|
42 |
import torch
|
43 |
from PIL import Image
|
44 |
from pixel import (
|
|
|
103 |
}
|
104 |
```
|
105 |
|
106 |
+
A minumum example to do inference and similarity computation:
|
107 |
+
```python
|
108 |
texts = ["I love you","I like you"]
|
109 |
|
110 |
inputs = preprocess(texts)
|