Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Stuck on "Installing pip dependencies" #1221

Closed
1 task done
RaymondTracer opened this issue Sep 19, 2022 · 10 comments
Closed
1 task done

[Bug]: Stuck on "Installing pip dependencies" #1221

RaymondTracer opened this issue Sep 19, 2022 · 10 comments
Labels
bug Something isn't working

Comments

@RaymondTracer
Copy link

What happened?

I am stuck on "Installing pip dependencies", I have tried deleting "z_version_env.tmp" and rerunning the batch file, but I am still getting the issue.

Version

0.0.1 (Default)

What browsers are you seeing the problem on?

No response

Where are you running the webui?

Windows

Custom settings

I have only modified webui_streamlit.yaml:

# UI defaults configuration file. It is automatically loaded if located at configs/webui/webui_streamlit.yaml.
# Any changes made here will be available automatically on the web app without having to stop it.
# You may add overrides in a file named "userconfig_streamlit.yaml" in this folder, which can contain any subset
# of the properties below.
general:
    gpu: 0
    outdir: outputs
    default_model: "Stable Diffusion v1.4" 
    default_model_config: "configs/stable-diffusion/v1-inference.yaml"
    default_model_path: "models/ldm/stable-diffusion-v1/model.ckpt"
    use_sd_concepts_library: True
    sd_concepts_library_folder: "models/custom/sd-concepts-library"
    GFPGAN_dir: "./src/gfpgan"
    RealESRGAN_dir: "./src/realesrgan"
    RealESRGAN_model: "RealESRGAN_x4plus"
    LDSR_dir: "./src/latent-diffusion"
    outdir_txt2img: outputs/txt2img-samples
    outdir_img2img: outputs/img2img-samples
    gfpgan_cpu: False
    esrgan_cpu: False
    extra_models_cpu: False
    extra_models_gpu: False
    save_metadata: True
    save_format: "png"
    skip_grid: False
    skip_save: False
    grid_format: "jpg:95"
    n_rows: -1
    no_verify_input: False
    no_half: False
    use_float16: False
    precision: "autocast"
    optimized: False
    optimized_turbo: False
    optimized_config: "optimizedSD/v1-inference.yaml"
    enable_attention_slicing: False
    enable_minimal_memory_usage : False
    update_preview: True
    update_preview_frequency: 11

txt2img:
    prompt:
    height: 576
    width: 1024
    cfg_scale: 7.5
    seed: ""
    batch_count: 1
    batch_size: 1
    sampling_steps: 250
    default_sampler: "k_euler_a"
    separate_prompts: False
    update_preview: True
    update_preview_frequency: 11
    normalize_prompt_weights: True
    save_individual_images: True
    save_grid: True
    group_by_prompt: True
    save_as_jpg: False
    use_GFPGAN: False
    use_RealESRGAN: False
    RealESRGAN_model: "RealESRGAN_x4plus"
    variant_amount: 0.0
    variant_seed: ""
    write_info_files: True
    slider_steps: {
      sampling: 1
    }
    slider_bounds: {
      sampling: {
        lower: 1,
        upper: 150
      }
    }
    
txt2vid:
    default_model: "CompVis/stable-diffusion-v1-4"
    custom_models_list: ["CompVis/stable-diffusion-v1-4", "naclbit/trinart_stable_diffusion_v2", "hakurei/waifu-diffusion", "osanseviero/BigGAN-deep-128"]
    prompt:
    height: 512
    width: 512
    cfg_scale: 7.5
    seed: ""
    batch_count: 1
    batch_size: 1
    sampling_steps: 30
    num_inference_steps: 200
    default_sampler: "k_euler"
    scheduler_name: "klms"
    separate_prompts: False
    update_preview: True
    update_preview_frequency: 5
    dynamic_preview_frequency: True
    normalize_prompt_weights: True
    save_individual_images: True
    save_video: True
    group_by_prompt: True
    write_info_files: True
    do_loop: False
    save_as_jpg: False
    use_GFPGAN: False
    use_RealESRGAN: False
    RealESRGAN_model: "RealESRGAN_x4plus"
    variant_amount: 0.0
    variant_seed: ""
    beta_start: 0.00085
    beta_end: 0.012
    beta_scheduler_type: "linear"
    max_frames: 1000
    slider_steps: {
      sampling: 1
    }
    slider_bounds: {
      sampling: {
        lower: 1,
        upper: 150
      }
    }
    
img2img:
    prompt: 
    sampling_steps: 30
    # Adding an int to toggles enables the corresponding feature.
    # 0: Create prompt matrix (separate multiple prompts using |, and get all combinations of them)
    # 1: Normalize Prompt Weights (ensure sum of weights add up to 1.0)
    # 2: Loopback (use images from previous batch when creating next batch)
    # 3: Random loopback seed
    # 4: Save individual images
    # 5: Save grid
    # 6: Sort samples by prompt
    # 7: Write sample info files
    # 8: jpg samples
    # 9: Fix faces using GFPGAN
    # 10: Upscale images using Real-ESRGAN
    sampler_name: "k_euler"
    denoising_strength: 0.75
    # 0: Keep masked area
    # 1: Regenerate only masked area
    mask_mode: 0
    mask_restore: False
    # 0: Just resize
    # 1: Crop and resize
    # 2: Resize and fill
    resize_mode: 0
    # Leave blank for random seed:
    seed: ""
    ddim_eta: 0.0
    cfg_scale: 7.5
    batch_count: 1
    batch_size: 1
    height: 512
    width: 512
    # Textual inversion embeddings file path:
    fp: ""
    loopback: True
    random_seed_loopback: True
    separate_prompts: False
    update_preview: True
    update_preview_frequency: 5
    normalize_prompt_weights: True
    save_individual_images: True
    save_grid: True
    group_by_prompt: True
    save_as_jpg: False
    use_GFPGAN: False
    use_RealESRGAN: False
    RealESRGAN_model: "RealESRGAN_x4plus"
    variant_amount: 0.0
    variant_seed: ""
    write_info_files: True
    slider_steps: {
        sampling: 1
      }
    slider_bounds: {
      sampling: {
        lower: 1,
        upper: 150
      }
    } 

gfpgan:
  strength: 100

Relevant log output

PS C:\Users\user\Documents\GitHub\stable-diffusion-webui> .\webui-streamlit.cmd
Environment name is set as ldm as per environment.yaml
anaconda3/miniconda3 detected in C:\ProgramData\miniconda3
Stashing local changes and pulling latest update...
Saved working directory and index state WIP on master: b703f49 Merge pull request #1211 from sd-webui/dev
Already up to date.
Do you want to restore changes you made before updating? (Y/N): y
Restoring changes, please wait...
Changes restored, press any key to continue...
The system cannot find the file specified.
Current  environment.yaml hash: 148c41826b9b55a6387ca46625329da99cb75dc8
Previous environment.yaml hash:
environment.yaml changed. updating dependencies

CondaValueError: prefix already exists: C:\Users\user\.conda\envs\ldm

Collecting package metadata (repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.12.0
  latest version: 4.14.0

Please update conda by running

    $ conda update -n base -c defaults conda


Installing pip dependencies: /

Code of Conduct

  • I agree to follow this project's Code of Conduct
@RaymondTracer RaymondTracer added the bug Something isn't working label Sep 19, 2022
@BellemareMederic
Copy link

BellemareMederic commented Sep 19, 2022

got the same where ... i reinstall miniconda, clean my z_version_env.tmp, git checkout dev, and modify the webui.cmd

SET PIP_EXISTS_ACTION=w && call conda env create --name "%v_conda_env_name%" -f environment.yaml
  SET PIP_EXISTS_ACTION=w && call conda env update --name "%v_conda_env_name%" -f environment.yaml

dont know witch work because i done in all at the same time ^^

@RaymondTracer
Copy link
Author

RaymondTracer commented Sep 19, 2022

I updated conda to the latest version, but that didn't help.

@kybercore
Copy link

Disable your AV and software firewall, then try running it again and give it 15 minutes on that step. You can try pressing the enter key then to refresh the cli

@rfariavitor
Copy link

Here, renaming the current main folder, git cloning it again and just moving the models and output folder to new new folder created did the job.

@RaymondTracer
Copy link
Author

That worked, thanks.

@nabilnaim
Copy link

@rfariavitor could you explain what you mean by main folder

@rfariavitor
Copy link

@nabilnaim I mean the folder the command "git" creates when you pull the project and that contains all the files and subfolders.

@kftX
Copy link

kftX commented Oct 8, 2022

Here, renaming the current main folder, git cloning it again and just moving the models and output folder to new new folder created did the job.

I did this and still getting the endless installing pip dependencies. It's running off an SSD on a 5950X so I don't expect it should take that long :p

I also updated pip via conda manually but nothing. My only next step is trying a completely fresh install probably

@RaymondTracer
Copy link
Author

Here, renaming the current main folder, git cloning it again and just moving the models and output folder to new new folder created did the job.

I did this and still getting the endless installing pip dependencies. It's running off an SSD on a 5950X so I don't expect it should take that long :p

I also updated pip via conda manually but nothing. My only next step is trying a completely fresh install probably

Python is a notoriously slow programming language, it usually takes a bit for it to install pip dependencies on my M.2 drive, but it shouldn't take more than 15 minutes.

If it is taking more than that, then I personally have no clue.

@imbeyondboredom
Copy link

I know this is closed but if this happens again I typically go through each folder called __pycache__ and delete those folders. That usually resolves it for me as it forces new modules to get downloaded.

Unfortunately I'm betting this continues to pop up until conda fixes the fact that you can't log out what pip is doing during an install:
conda/conda#10556

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants