Update README.md
This commit is contained in:
parent
ea737d2858
commit
b0acf67ee3
|
@ -12,7 +12,7 @@ as a proof-of-concept for the 🤗 FlaxVisionEncoderDecoder Framework.
|
||||||
|
|
||||||
The model can be used as follows:
|
The model can be used as follows:
|
||||||
|
|
||||||
In PyTorch
|
**In PyTorch**
|
||||||
```python
|
```python
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
@ -53,12 +53,7 @@ print(preds)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
In order to use Flax's version of this model, currently it is necessary to install a particular branch of `transformers`:
|
**In Flax**
|
||||||
```
|
|
||||||
pip install git+https://github.com/ydshieh/transformers.git@flax_vision_encoder_decoder
|
|
||||||
```
|
|
||||||
and it can be used as
|
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|
||||||
import jax
|
import jax
|
||||||
|
|
Loading…
Reference in New Issue