kijai / ComfyUI-IC-Light-Wrapper

Wraps the IC-Light Diffuser demo to a ComfyUI node
Apache License 2.0
330 stars 10 forks source link

On the compatibility of the new version of diffusers #16

Open whisky-12 opened 2 months ago

whisky-12 commented 2 months ago

Hello, excuse me, I would like to confirm a problem here. In our use, the diffusers version must be kept above 0.30.1。

However, it is noted that the created_text_encoder_from_ldm_clip_checkpoint function in the current component node code has been removed in the new version of diffusers, is there any alternative


# 3. text_model
            print("loading text model")
            text_encoder = create_text_encoder_from_ldm_clip_checkpoint("openai/clip-vit-large-patch14",sd)
            scheduler_config = {
                'num_train_timesteps': 1000,
                'beta_start':    0.00085,
                'beta_end':      0.012,
                'beta_schedule': "scaled_linear",
                'steps_offset': 1
            }