Skip to content

Commit 1b976f6

Browse files
committed
update requirements
1 parent 88de556 commit 1b976f6

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

modules/sd_models.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -864,8 +864,14 @@ def load_diffuser(checkpoint_info=None, already_loaded_state_dict=None, timer=No
864864
if debug_load:
865865
errors.display(e, 'Load')
866866
return
867-
elif 'ONNX' in model_type: # forced pipeline
868-
sd_model = pipeline.from_pretrained(checkpoint_info.path)
867+
elif model_type is not None and pipeline is not None and 'ONNX' in model_type: # forced pipeline
868+
try:
869+
sd_model = pipeline.from_pretrained(checkpoint_info.path)
870+
except Exception as e:
871+
shared.log.error(f'ONNX Failed loading {op}: {checkpoint_info.path} {e}')
872+
if debug_load:
873+
errors.display(e, 'Load')
874+
return
869875
else:
870876
err1, err2, err3 = None, None, None
871877
# diffusers_load_config['use_safetensors'] = True

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ resize-right
2424
rich
2525
safetensors
2626
scipy
27-
tensordict==0.2.1
27+
tensordict==0.1.2
2828
toml
2929
torchdiffeq
3030
voluptuous

wiki

Submodule wiki updated from 768eb25 to 9c62124

0 commit comments

Comments
 (0)