vittoriopippi commited on
Commit
fb73be2
·
1 Parent(s): 5084d4b

Edit README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -4
README.md CHANGED
@@ -36,7 +36,7 @@ please see the [VATr-pp GitHub repository](https://github.com/EDM-Research/VATr-
36
 
37
  1. **Clone this repository (via Git LFS)**:
38
  ```bash
39
- git lfs clone https://huggingface.co/blowing-up-groundhogs/vatrpp
40
  ```
41
 
42
  2. **Create (and activate) a conda environment (recommended)**:
@@ -52,7 +52,7 @@ please see the [VATr-pp GitHub repository](https://github.com/EDM-Research/VATr-
52
 
53
  4. **Install additional requirements**:
54
  ```bash
55
- pip install opencv-python matplotlib
56
  ```
57
 
58
  ---
@@ -75,9 +75,9 @@ model_vatr_pp = VATrPP.from_pretrained(
75
  ### **VATr (original)**
76
 
77
  ```python
78
- from vatrpp import VATr
79
 
80
- model_vatr = VATr.from_pretrained(
81
  "vatrpp",
82
  local_files_only=True,
83
  subfolder="vatr" # Points to the original VATr checkpoint
@@ -103,6 +103,7 @@ from torchvision import transforms as T
103
  # 1. Load the model (VATr++)
104
  from vatrpp import VATrPP
105
  model = VATrPP.from_pretrained("vatrpp", local_files_only=True)
 
106
 
107
  # 2. Helper functions to load and process style images
108
  def load_image(img, chunk_width=192):
 
36
 
37
  1. **Clone this repository (via Git LFS)**:
38
  ```bash
39
+ git clone https://huggingface.co/blowing-up-groundhogs/vatrpp
40
  ```
41
 
42
  2. **Create (and activate) a conda environment (recommended)**:
 
52
 
53
  4. **Install additional requirements**:
54
  ```bash
55
+ pip install transformers opencv-python matplotlib
56
  ```
57
 
58
  ---
 
75
  ### **VATr (original)**
76
 
77
  ```python
78
+ from vatrpp import VATrPP
79
 
80
+ model_vatr = VATrPP.from_pretrained(
81
  "vatrpp",
82
  local_files_only=True,
83
  subfolder="vatr" # Points to the original VATr checkpoint
 
103
  # 1. Load the model (VATr++)
104
  from vatrpp import VATrPP
105
  model = VATrPP.from_pretrained("vatrpp", local_files_only=True)
106
+ model.cuda()
107
 
108
  # 2. Helper functions to load and process style images
109
  def load_image(img, chunk_width=192):