jessicanono commited on
Commit
843a55f
·
1 Parent(s): c90d266

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -61,12 +61,12 @@ To colorize an image, follow these steps:
61
 
62
  # Set the path to your image
63
  image_path = 'path_to_your_image.jpg'
64
- save_path = 'path_to_save_colorized_image'
65
  criterion = nn.MSELoss()
66
 
67
  # Colorize the image
68
  use_gpu = torch.cuda.is_available()
69
- colorize_single_image(image_path, model, criterion, save_path, epoch=0, use_gpu=use_gpu)
70
  ```
71
 
72
  3. **View the Results**: The colorized image will be saved in the specified `save_path`. You will find both the original grayscale and the colorized version there.
 
61
 
62
  # Set the path to your image
63
  image_path = 'path_to_your_image.jpg'
64
+ save_dir = 'dir_to_save_colorized_image'
65
  criterion = nn.MSELoss()
66
 
67
  # Colorize the image
68
  use_gpu = torch.cuda.is_available()
69
+ colorize_single_image(image_path, model, criterion, save_dir, epoch=0, use_gpu=use_gpu)
70
  ```
71
 
72
  3. **View the Results**: The colorized image will be saved in the specified `save_path`. You will find both the original grayscale and the colorized version there.