i
This commit is contained in:
		
							parent
							
								
									d7d7f3d5b2
								
							
						
					
					
						commit
						6b5c8dfa74
					
				| @ -3,7 +3,7 @@ import sys | |||||||
| import platform | import platform | ||||||
| 
 | 
 | ||||||
| from modules.launch_util import commit_hash, fooocus_tag, is_installed, run, python, \ | from modules.launch_util import commit_hash, fooocus_tag, is_installed, run, python, \ | ||||||
|     run_pip, repo_dir, git_clone, requirements_met |     run_pip, repo_dir, git_clone, requirements_met, script_path, dir_repos | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| REINSTALL_ALL = False | REINSTALL_ALL = False | ||||||
| @ -27,6 +27,7 @@ def prepare_environment(): | |||||||
|     print(f"Commit hash: {commit}") |     print(f"Commit hash: {commit}") | ||||||
| 
 | 
 | ||||||
|     git_clone(comfy_repo, repo_dir('StabilityAI-official-comfyui'), "Inference Engine", comfy_commit_hash) |     git_clone(comfy_repo, repo_dir('StabilityAI-official-comfyui'), "Inference Engine", comfy_commit_hash) | ||||||
|  |     sys.path.append(os.path.join(script_path, dir_repos, 'StabilityAI-official-comfyui')) | ||||||
| 
 | 
 | ||||||
|     if REINSTALL_ALL or not is_installed("torch") or not is_installed("torchvision"): |     if REINSTALL_ALL or not is_installed("torch") or not is_installed("torchvision"): | ||||||
|         run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True) |         run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True) | ||||||
|  | |||||||
| @ -9,4 +9,6 @@ scipy==1.9.3 | |||||||
| tqdm==4.64.1 | tqdm==4.64.1 | ||||||
| psutil==5.9.5 | psutil==5.9.5 | ||||||
| opencv-python==4.7.0.72 | opencv-python==4.7.0.72 | ||||||
| numpy==1.23 | numpy==1.23.5 | ||||||
|  | pytorch_lightning==1.9.4 | ||||||
|  | omegaconf==2.2.3 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user