Closed lijunliangTG closed 4 months ago
add ignores = ("vae",) can fix this
Compilation works fine with torch
if pipe.vae.dtype == torch.float16 and pipe.vae.config.force_upcast:
pipe.upcast_vae()
# Compile the pipeline
if args.compile:
# pipe = compile_pipe(pipe,)
compiled_decoder = oneflow_compile(pipe.vae.decoder)
pipe.vae.decoder = compiled_decoder
if args.load_graph:
print("Loading graphs...")
load_pipe(pipe, args.load_graph_dir)
add oneflow.cuda.empty_cache()
at the end of each loop can run
output_1.txt
OUTPUT_FILE_6_oneflowempty.txt
Describe the bug
A clear and concise description of what the bug is.
When using input data with different resolution sizes, the program compiles the graphical model multiple times.
Your environment
OS
Ubuntu 20.04.4 LTS
OneDiff git commit id
6077d115
OneFlow version info
Run
python -m oneflow --doctor
and paste it here.How To Reproduce
Steps to reproduce the behavior(code or script):
The complete error message
via
I get the logs below
Additional context
GPU INFO.txt txt2img_debug_withempty.txt