File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,12 @@ def pip_install_comfyui_dependencies(
7272 "torchaudio" ,
7373 ]
7474
75- if plat == constants .OS .WINDOWS and cuda_version == constants .CUDAVersion .v12_6 :
75+ if plat == constants .OS .WINDOWS and cuda_version == constants .CUDAVersion .v12_9 :
76+ base_command += [
77+ "--extra-index-url" ,
78+ "https://download.pytorch.org/whl/cu129" ,
79+ ]
80+ elif plat == constants .OS .WINDOWS and cuda_version == constants .CUDAVersion .v12_6 :
7681 base_command += [
7782 "--extra-index-url" ,
7883 "https://download.pytorch.org/whl/cu126" ,
Original file line number Diff line number Diff line change @@ -394,6 +394,11 @@ def remove(
394394 typer .echo ("Deletion canceled." )
395395
396396
397+ def list_models (path : pathlib .Path ) -> list :
398+ """List all models in the specified directory."""
399+ return [file for file in path .iterdir () if file .is_file ()]
400+
401+
397402@app .command ()
398403@tracking .track_command ("model" )
399404def list (
@@ -416,8 +421,3 @@ def list(
416421 data = [(model .name , f"{ model .stat ().st_size // 1024 } KB" ) for model in models ]
417422 column_names = ["Model Name" , "Size" ]
418423 ui .display_table (data , column_names )
419-
420-
421- def list_models (path : pathlib .Path ) -> list :
422- """List all models in the specified directory."""
423- return [file for file in path .iterdir () if file .is_file ()]
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ class PROC(str, Enum):
6262
6363
6464class CUDAVersion (str , Enum ):
65+ v12_9 = "12.9"
6566 v12_6 = "12.6"
6667 v12_4 = "12.4"
6768 v12_1 = "12.1"
You can’t perform that action at this time.
0 commit comments