DongChenMSRA commited on
Commit
0e39a04
·
verified ·
1 Parent(s): 8674d18

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +8 -3
README.md CHANGED
@@ -332,7 +332,7 @@ pipe = LensPipeline.from_pretrained(
332
  image = pipe(
333
  prompt="A cat holding a sign that says hello world",
334
  base_resolution=1440, aspect_ratio="1:1",
335
- num_inference_steps=20, guidance_scale=5.0,
336
  generator=torch.Generator("cuda").manual_seed(0),
337
  ).images[0]
338
  image.save("lens.png")
@@ -347,7 +347,7 @@ python inference.py \
347
  --repo_id "microsoft/Lens-Base" \
348
  --prompt "A cinematic mountain lake at sunrise, soft mist, detailed reflections" \
349
  --base_resolution 1440 --aspect_ratio 1:1 \
350
- --steps 20 --cfg 5.0 --n 1 --seed 42 \
351
  --out ./outputs
352
  ```
353
 
@@ -356,13 +356,18 @@ python inference.py \
356
  ```bash
357
  python inference.py \
358
  --repo_id "microsoft/Lens-Base" \
 
359
  --prompt "a red fox in snow|a glass greenhouse at night"
360
  ```
361
 
362
  **A100 / V100 (no MXFP4 kernels)** — dequantize the GPT-OSS encoder to bf16:
363
 
364
  ```bash
365
- python inference.py --repo_id "microsoft/Lens-Base" --prompt "a cat" --disable_mxfp4 --offload
 
 
 
 
366
  ```
367
 
368
  ### Options
 
332
  image = pipe(
333
  prompt="A cat holding a sign that says hello world",
334
  base_resolution=1440, aspect_ratio="1:1",
335
+ num_inference_steps=50, guidance_scale=5.0,
336
  generator=torch.Generator("cuda").manual_seed(0),
337
  ).images[0]
338
  image.save("lens.png")
 
347
  --repo_id "microsoft/Lens-Base" \
348
  --prompt "A cinematic mountain lake at sunrise, soft mist, detailed reflections" \
349
  --base_resolution 1440 --aspect_ratio 1:1 \
350
+ --steps 50 --cfg 5.0 --n 1 --seed 42 \
351
  --out ./outputs
352
  ```
353
 
 
356
  ```bash
357
  python inference.py \
358
  --repo_id "microsoft/Lens-Base" \
359
+ --steps 50 --cfg 5.0 \
360
  --prompt "a red fox in snow|a glass greenhouse at night"
361
  ```
362
 
363
  **A100 / V100 (no MXFP4 kernels)** — dequantize the GPT-OSS encoder to bf16:
364
 
365
  ```bash
366
+ python inference.py \
367
+ --repo_id "microsoft/Lens-Base" \
368
+ --steps 50 --cfg 5.0 \
369
+ --prompt "a cat" \
370
+ --disable_mxfp4 --offload
371
  ```
372
 
373
  ### Options