Upload README.md with huggingface_hub
Browse files
    	
        README.md
    ADDED
    
    | 
         @@ -0,0 +1,42 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            ---
         
     | 
| 2 | 
         
            +
            tags:
         
     | 
| 3 | 
         
            +
            - text-to-image
         
     | 
| 4 | 
         
            +
            - lora
         
     | 
| 5 | 
         
            +
            - diffusers
         
     | 
| 6 | 
         
            +
            - template:sd-lora
         
     | 
| 7 | 
         
            +
            - ai-toolkit
         
     | 
| 8 | 
         
            +
            base_model: Qwen/Qwen-Image
         
     | 
| 9 | 
         
            +
            license: creativeml-openrail-m
         
     | 
| 10 | 
         
            +
            instance_prompt: trtcrd
         
     | 
| 11 | 
         
            +
            ---
         
     | 
| 12 | 
         
            +
             
     | 
| 13 | 
         
            +
            # my_first_lora_v1-lora
         
     | 
| 14 | 
         
            +
             
     | 
| 15 | 
         
            +
            Model trained with [AI Toolkit by Ostris](https://github.com/ostris/ai-toolkit)
         
     | 
| 16 | 
         
            +
             
     | 
| 17 | 
         
            +
            <Gallery />
         
     | 
| 18 | 
         
            +
             
     | 
| 19 | 
         
            +
            ## Trigger words
         
     | 
| 20 | 
         
            +
             
     | 
| 21 | 
         
            +
            You should use `trtcrd` to trigger the image generation.
         
     | 
| 22 | 
         
            +
             
     | 
| 23 | 
         
            +
            ## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, etc.
         
     | 
| 24 | 
         
            +
             
     | 
| 25 | 
         
            +
            Weights for this model are available in Safetensors format.
         
     | 
| 26 | 
         
            +
             
     | 
| 27 | 
         
            +
            [Download](multimodalart/my_first_lora_v1-lora/tree/main) them in the Files & versions tab.
         
     | 
| 28 | 
         
            +
             
     | 
| 29 | 
         
            +
            ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
         
     | 
| 30 | 
         
            +
             
     | 
| 31 | 
         
            +
            ```py
         
     | 
| 32 | 
         
            +
            from diffusers import AutoPipelineForText2Image
         
     | 
| 33 | 
         
            +
            import torch
         
     | 
| 34 | 
         
            +
             
     | 
| 35 | 
         
            +
            pipeline = AutoPipelineForText2Image.from_pretrained('Qwen/Qwen-Image', torch_dtype=torch.float16).to('cuda')
         
     | 
| 36 | 
         
            +
            pipeline.load_lora_weights('multimodalart/my_first_lora_v1-lora', weight_name='my_first_lora_v1_000002000.safetensors')
         
     | 
| 37 | 
         
            +
            image = pipeline('trtcrd').images[0]
         
     | 
| 38 | 
         
            +
            image.save("my_image.png")
         
     | 
| 39 | 
         
            +
            ```
         
     | 
| 40 | 
         
            +
             
     | 
| 41 | 
         
            +
            For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
         
     | 
| 42 | 
         
            +
             
     |