Skip to content

Commit

Permalink
Add some simple ReVision examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Aug 19, 2023
1 parent e18d44f commit 712fa76
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion sdxl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,27 @@ For using the base with the refiner you can use this workflow. You can download

You can also give the base and refiners different prompts like on this workflow.

![Example](sdxl_refiner_prompt_example.png)
![Example](sdxl_refiner_prompt_example.png)


### ReVision

ReVision is very similar to [unCLIP](../unclip) but behaves on a more conceptual level. You can pass one or more images to it and it will

First download [CLIP-G Vision](https://huggingface.co/comfyanonymous/clip_vision_g/blob/main/clip_vision_g.safetensors) and put in in your ComfyUI/models/clip_vision/ directory.


Here is an example workflow that can be dragged or loaded into ComfyUI. In this following example the positive text prompt is zeroed out in order for the final output to follow the input image more closely.

![Example](sdxl_revision_zero_positive.png)


If you want to use text prompts you can use this example:

![Example](sdxl_revision_text_prompts.png)

Note that the strength option can be used to increase the effect each input image has on the final output. It also works with an arbitrary number of images by either using a single unCLIPConditioning or chainning more than one together like in the above examples.

Here are the input images for the above workflows if you need them:

<img src="../unclip/mountains.png" width="256" /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><img src="../unclip/sunset.png" width="256" />
Binary file added sdxl/sdxl_revision_text_prompts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sdxl/sdxl_revision_zero_positive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 712fa76

Please sign in to comment.