بصری AI گائیڈ

ڈریم فیوژن اور اسکور ڈسٹلیشن سیمپلنگ

DreamFusion is a 2022 Google Research method that creates a 3D object from a text prompt without any 3D training data.

اس گائیڈ کو سنیں۔اے آئی نے بیان کیا۔ · ~7 min

اس صفحہ پر8 min read
  1. جائزہ
  2. اہم نکات
  3. گہرا غوطہ
  4. Running score distillation on one prompt with threestudio
  5. حقیقی دنیا کا نفاذ
  6. ڈریم فیوژن اور اسکور ڈسٹلیشن سیمپلنگ کا مستقبل
  7. اسے عملی جامہ پہنانا
  8. ذرائع اور مزید پڑھنا
  9. دریافت کرتے رہیں
  10. اکثر پوچھے گئے سوالات

جائزہ

Its key idea, Score Distillation Sampling (SDS), uses a frozen 2D text-to-image diffusion model as a critic that grades rendered views of a 3D scene and pushes the scene toward what the prompt describes. SDS became the foundation of most optimization-based text-to-3D research.

اہم نکات

  1. DreamFusion, from Google Research in 2022, generates 3D objects from text using only a pretrained 2D image diffusion model.
  2. Score Distillation Sampling compares a diffusion model's predicted noise with the true noise on a rendering and pushes that difference into the 3D model.
  3. The frozen diffusion model acts as a critic; gradients never flow through it, which keeps each update cheap.
  4. DreamFusion used a classifier-free guidance weight of 100 and took about 1.5 hours per object on four TPUv4 chips.
  5. SDS results tend to be oversaturated, oversmoothed and low in diversity, which later methods such as ProlificDreamer set out to fix.
  6. DreamFusion received an Outstanding Paper Award at ICLR 2023.

گہرا غوطہ

DreamFusion turns a sentence such as 'a squirrel playing a guitar' into a 3D model that can be viewed from any angle, relit and placed in a scene. It was introduced in 'DreamFusion: Text-to-3D using 2D Diffusion' by Ben Poole, Ajay Jain, Jonathan T. Barron and Ben Mildenhall of Google Research and UC Berkeley, posted to arXiv on 29 September 2022. The paper won an Outstanding Paper Award at ICLR 2023. Its central contribution is a loss function called Score Distillation Sampling, or SDS, which lets a pretrained image generator supervise the creation of something it was never trained to make.

The problem it solved was data. Text-to-image diffusion models learned from billions of captioned images, but no comparable collection of captioned 3D models existed, and the authors note that efficient architectures for denoising 3D data were also lacking. Earlier text-to-3D work such as Dream Fields used CLIP, a model that scores how well an image matches a caption, to guide a 3D scene, but its results tended to lack realism. DreamFusion kept the same overall recipe, optimizing a 3D scene so its 2D renderings look right, and swapped CLIP for a diffusion model.

The 3D scene is a Neural Radiance Field, or NeRF: a small neural network that takes a 3D point and returns a density (how opaque the space is) and a color. Images are made by volume rendering, shooting rays from a virtual camera and accumulating density and color along each ray. DreamFusion builds on mip-NeRF 360, a variant that reduces aliasing. Rather than raw color, it predicts albedo, the surface's base color, and computes surface normals from the density field so the object can be shaded under a light source. This matters because shading exposes the true shape.

Each optimization step runs as follows. Sample a random camera position around the object and a random light direction. Render an image of the current NeRF, sometimes with full color and shading, sometimes as plain albedo, and sometimes as a 'textureless' gray shaded render that shows geometry alone. Add Gaussian noise to that image at a random noise level. Ask the frozen diffusion model, given the noisy image and the prompt, to predict the noise. Take the difference between predicted and actual noise as the update direction, and backpropagate it through the renderer into the NeRF's weights. The diffusion model is never updated and gradients never pass through it, so it behaves like a fixed critic suggesting image-space edits. Over 15,000 iterations, renderings from every angle converge toward images the diffusion model considers likely for the prompt.

Two practical tricks made it work. First, prompts are adjusted by camera angle: 'overhead view' for high elevations, and blends of 'front view', 'side view' or 'back view' by azimuth. Without this, the paper shows a dog with multiple faces, because the image model draws a front-facing dog from every direction, a failure later called the Janus problem. Second, classifier-free guidance, which strengthens the prompt's influence, was set to 100, far higher than the single-digit values typical for image generation, because lower values produced oversmoothed results under SDS. The diffusion model was Google's Imagen, using only its 64 by 64 pixel base model. Each scene took around 1.5 hours on a TPUv4 machine with four chips.

On quantitative evaluation, the paper used CLIP R-Precision, the accuracy with which CLIP picks the correct caption for a rendering among distractors. With the CLIP L/14 model, DreamFusion scored 79.7 percent on color renders and 58.5 percent on textureless geometry renders, the latter showing that the shape itself matched the prompt. The authors note that Dream Fields and CLIP-Mesh had an advantage on this metric because they trained with CLIP.

Follow-up work moved fast. NVIDIA's Magic3D, posted in November 2022, added a second stage that refines a textured mesh with a high-resolution latent diffusion model, reporting about 40 minutes per object, twice as fast as DreamFusion, and a 61.7 percent rater preference over it. ProlificDreamer, posted in May 2023, generalized SDS into variational score distillation, treating the 3D scene as a distribution rather than a single point, and reported better quality and diversity at a normal guidance weight of 7.5. Open-source frameworks such as threestudio collected these methods; its documentation notes that DreamFusion guided by DeepFloyd IF performs much better than the Stable Diffusion variant.

The limitations are well documented by the authors. SDS tends to produce oversaturated and oversmoothed results compared with ordinary diffusion sampling, and outputs vary little across random seeds, which the paper attributes to the mode-seeking nature of its reverse KL divergence objective. The 64-pixel guidance model limits fine detail. Recovering 3D from 2D views is ill-posed, since many 3D shapes produce the same images, so the optimization can fall into poor local minima. The method also needs minutes to hours of optimization per object, unlike feed-forward 3D generators that output a model in one pass. In practice, the threestudio implementation lists about 6 GB of GPU memory for training the Stable Diffusion version and about 10 GB for the DeepFloyd IF version, plus about 15 GB to extract text embeddings.

04کام کی مثال

Running score distillation on one prompt with threestudio

  1. Install threestudio on a machine with an NVIDIA GPU of at least 6 GB of memory, following the repository instructions.

  2. Choose the Stable Diffusion DreamFusion configuration and set the prompt to a simple object, for example 'a ripe strawberry'.

  3. Start training and watch the periodic validation renders, which show color, normals and textureless shading from rotating viewpoints.

  4. Note how early renders are blurry blobs and later renders sharpen as SDS updates accumulate.

  5. Rerun with a lower guidance scale and compare: the result should look smoother and less defined, matching the paper's observation.

  6. Export the result as a mesh and inspect it from the back and top to check for duplicated faces or flat geometry.

جو یہ دکھاتا ہے۔

The learner ends with a mesh of the prompted object and two runs that show how guidance strength changes SDS output. Checking back and top views reveals whether the Janus problem appeared, and the textureless renders show whether the shape, not just the texture, matches the prompt.

حقیقی دنیا کا نفاذ

The DreamFusion project page offers a searchable gallery of hundreds of text-generated 3D assets, which can be converted to meshes with marching cubes for use in standard 3D software.

NVIDIA's Magic3D (CVPR 2023) applies score distillation in two stages, a coarse hash-grid model then a textured mesh, producing results in about 40 minutes.

ProlificDreamer (NeurIPS 2023) replaces SDS with variational score distillation to reduce oversaturated colors, rendering high-fidelity NeRFs at 512 by 512 pixels.

The open-source threestudio framework reimplements DreamFusion with Stable Diffusion or DeepFloyd IF guidance, so researchers can run SDS on a single GPU with about 6 GB of memory for the Stable Diffusion version.

Researchers use DreamFusion's view-dependent prompting trick, appending 'front view', 'side view' or 'back view' to the text, in later text-to-3D methods to reduce multi-faced objects.

ڈریم فیوژن اور اسکور ڈسٹلیشن سیمپلنگ کا مستقبل

Research after DreamFusion has targeted each of its stated weaknesses. Oversaturation and low diversity led to variational score distillation in ProlificDreamer (2023) and many other modified distillation losses collected in frameworks such as threestudio. Low resolution led to two-stage mesh refinement in Magic3D (2022) and to guidance from higher-resolution latent diffusion models. The multi-face problem prompted multi-view diffusion models that see several views at once, such as MVDream, which threestudio lists among supported methods. Speed is the biggest practical gap: optimization per prompt takes tens of minutes to hours, so the field has also explored generators trained to output 3D directly in a single pass. Whether distillation-based optimization or feed-forward 3D generation becomes the standard approach is not settled in published results, and the DreamFusion authors themselves wrote that higher-resolution synthesis depends on efficiency gains in both diffusion and neural rendering. Evaluation also remains open, since CLIP R-Precision measures prompt agreement but not geometric quality.

اسے عملی جامہ پہنانا

یہ کیوں اہمیت رکھتا ہے۔

  • رفتار اور پیمانہ. بصری AI پیمانے پر معائنہ، پتہ لگانے، اور ٹیگنگ کے کاموں کو خودکار کر سکتا ہے۔
  • بلڈ کے انتخاب. تخلیقی ٹیمیں کم دستی ترمیم کے ساتھ تصورات کو تیزی سے پروٹو ٹائپ کر سکتی ہیں۔
  • ٹیم اور ورک فلو. آپریشنز امیج اور ویڈیو سگنلز کا استعمال کر سکتے ہیں جن پر کارروائی کرنا پہلے مشکل تھا۔

پر نگاہ رکھیں

  • تصویر کے حقوق اور رضامندی قانونی خطرات بن سکتے ہیں اگر ثبوت واضح نہ ہو۔
  • ماڈل کی کارکردگی روشنی، ڈیموگرافکس اور ماحول میں مختلف ہو سکتی ہے۔
  • جب تک اعتماد کی حدوں کی نگرانی نہ کی جائے غلط مثبتات پر کسی کا دھیان نہیں جا سکتا۔

اگلے اقدامات

  1. درستگی، یاد کرنے، اور غلطی کے اخراجات کے لیے قبولیت کے معیار کی وضاحت کریں۔
  2. اعداد و شمار کے ساتھ ٹیسٹ کریں جو حقیقی پیداوار کے حالات سے میل کھاتا ہے۔
  3. کم اعتماد یا زیادہ اثر والی پیشین گوئیوں کے لیے انسانی جائزہ شامل کریں۔
  4. کیمرہ یا ڈیٹاسیٹ کی تبدیلیوں کے بعد ماڈل ڈرفٹ کو ٹریک کریں اور دوبارہ تصدیق کریں۔

ذرائع اور مزید پڑھنا

  1. arXiv (ICLR 2023)DreamFusion: Text-to-3D using 2D Diffusion
  2. Google ResearchDreamFusion project page
  3. Google ResearchGoogle at ICLR 2023
  4. arXiv (CVPR 2023)Magic3D: High-Resolution Text-to-3D Content Creation
  5. arXiv (NeurIPS 2023)ProlificDreamer: High-Fidelity and Diverse Text-to-3D Generation with Variational Score Distillation
  6. GitHubthreestudio-project/threestudio

دریافت کرتے رہیں

مفت نیوز لیٹر

روزانہ AI بریفنگ حاصل کریں

ہر ہفتے کے دن صبح تین تصدیق شدہ AI کہانیاں، سادہ انگریزی میں لکھی گئیں۔ ہمیشہ کے لیے مفت، کوئی اشتہار نہیں۔

ہر ہفتے کے دن ایک ای میل۔ ایک کلک میں ان سبسکرائب کریں۔ ہم کبھی بھی آپ کا پتہ فروخت یا شیئر نہیں کرتے۔

اپنے آپ کو جانچیں۔

Take the DreamFusion and Score Distillation Sampling quiz

ہر جواب پر فوری فیڈبیک، اور کورس پاس کرنے کے بعد قابلِ تصدیق ID کے ساتھ شیئر کرنے کے قابل سرٹیفکیٹ۔

کوئز شروع کریں۔

مفت AI تعلیم کی حمایت کریں۔ AI Understanding ایک 501(c)(3) غیر منافع بخش ادارہ ہے — کوئی اشتہار نہیں، کوئی پے وال نہیں، کبھی نہیں۔ عطیہ کریں۔

اکثر پوچھے گئے سوالات

What is DreamFusion and Score Distillation Sampling?

DreamFusion is a 2022 Google Research method that creates a 3D object from a text prompt without any 3D training data. Its key idea, Score Distillation Sampling (SDS), uses a frozen 2D text-to-image diffusion model as a critic that grades rendered views of a 3D scene and pushes the scene toward what the prompt describes. SDS became the foundation of most optimization-based text-to-3D research.

ڈریم فیوژن کس 3D نمائندگی کو بہتر بناتا ہے؟

DreamFusion ایک NeRF کو بہتر بناتا ہے لہذا اس کے پیش کردہ خیالات 2D ڈفیوژن ماڈل کے ٹیکسٹ پرامپٹ کے فیصلے کو پورا کرتے ہیں۔

ڈریم فیوژن کو کتنے 3D ٹریننگ ڈیٹا کی ضرورت ہے؟

DreamFusion ایک منجمد 2D ٹیکسٹ ٹو امیج ڈفیوژن ماڈل کو اپنی واحد نگرانی کے طور پر استعمال کرتا ہے، جس میں 3D ٹریننگ ڈیٹا کی ضرورت نہیں ہوتی ہے۔

What is the computational shortcut in Score Distillation Sampling?

SDS forms a gradient from the diffusion noise prediction and sampled noise, stopping gradients through the diffusion model to avoid its full Jacobian.

Why did DreamFusion use high classifier-free guidance in its experiments?

The paper reports that high guidance improves the visual quality of SDS outputs, whose mode-seeking objective can otherwise produce oversmoothed results; geometry is not guaranteed.

اصل ڈریم فیوژن نے اپنے منجمد ہونے سے پہلے کون سا 2D ماڈل استعمال کیا تھا؟

DreamFusion کو Google کے امیجین ٹیکسٹ ٹو امیج ڈفیوژن ماڈل پر منجمد اسکورنگ فنکشن کے طور پر بنایا گیا تھا۔