10000 closes #113; get rid of configuring opencv · chengzeyi/stable-fast@307ca82 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
closes #113; get rid of configuring opencv
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzeyi committed Feb 5, 2024
1 parent 2ac39c5 commit 307ca82
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
3 changes: 1 addition & 2 deletions examples/optimize_instant_id_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,8 @@ def get_kwarg_inputs():
# Let's see it!
# Note: Progress bar might work incorrectly due to the async nature of CUDA.
kwarg_inputs = get_kwarg_inputs()
iter_profiler = None
iter_profiler = IterationProfiler()
if 'callback_on_step_end' in inspect.signature(model).parameters:
iter_profiler = IterationProfiler()
kwarg_inputs[
'callback_on_step_end'] = iter_profiler.callback_on_step_end
begin = time.time()
Expand Down
3 changes: 1 addition & 2 deletions examples/optimize_lcm_lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,8 @@ def get_kwarg_inputs():
# Let's see it!
# Note: Progress bar might work incorrectly due to the async nature of CUDA.
kwarg_inputs = get_kwarg_inputs()
iter_profiler = None
iter_profiler = IterationProfiler()
if 'callback_on_step_end' in inspect.signature(model).parameters:
iter_profiler = IterationProfiler()
kwarg_inputs[
'callback_on_step_end'] = iter_profiler.callback_on_step_end
begin = time.time()
Expand Down
3 changes: 1 addition & 2 deletions examples/optimize_lcm_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,8 @@ def get_kwarg_inputs():
# Let's see it!
# Note: Progress bar might work incorrectly due to the async nature of CUDA.
kwarg_inputs = get_kwarg_inputs()
iter_profiler = None
iter_profiler = IterationProfiler()
if 'callback_on_step_end' in inspect.signature(model).parameters:
iter_profiler = IterationProfiler()
kwarg_inputs[
'callback_on_step_end'] = iter_profiler.callback_on_step_end
begin = time.time()
Expand Down
3 changes: 1 addition & 2 deletions examples/optimize_stable_diffusion_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,8 @@ def get_kwarg_inputs():
# Let's see it!
# Note: Progress bar might work incorrectly due to the async nature of CUDA.
kwarg_inputs = get_kwarg_inputs()
iter_profiler = None
iter_profiler = IterationProfiler()
if 'callback_on_step_end' in inspect.signature(model).parameters:
iter_profiler = IterationProfiler()
kwarg_inputs[
'callback_on_step_end'] = iter_profiler.callback_on_step_end
begin = time.time()
Expand Down
3 changes: 1 addition & 2 deletions examples/optimize_stable_video_diffusion_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,8 @@ def get_kwarg_inputs():
# Let's see it!
# Note: Progress bar might work incorrectly due to the async nature of CUDA.
kwarg_inputs = get_kwarg_inputs()
iter_profiler = None
iter_profiler = IterationProfiler()
if 'callback_on_step_end' in inspect.signature(model).parameters:
iter_profiler = IterationProfiler()
kwarg_inputs[
'callback_on_step_end'] = iter_profiler.callback_on_step_end
begin = time.time()
Expand Down
2 changes: 1 addition & 1 deletion src/sfast/utils/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def setup_environment():
return
_ENV_SETUP_DONE = True

_configure_libraries()
# _configure_libraries()

custom_module_path = os.environ.get("SFAST_ENV_MODULE")

Expand Down

0 comments on commit 307ca82

Please sign in to comment.
0