diff --git a/inference_dreamx5b.py b/inference_dreamx5b.py index 72add7b..ab04981 100644 --- a/inference_dreamx5b.py +++ b/inference_dreamx5b.py @@ -315,7 +315,7 @@ def get_camera_sequence(action_ids, action_speed_list, args): def process_inference_from_json(args, pipeline, device, vae, boundary): """Process inference for all images in input directory.""" - with open(args.input_dir, 'r') as f: + with open(args.input_dir, 'r', encoding='utf-8') as f: items = json.load(f)