SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.18766 · 2023

HiFA: High-fidelity Text-to-3D Generation with Advanced Diffusion Guidance

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 1 failure of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2305.18766.json · badge: /api/ran/2305.18766.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
JunzheJosephZhu/HiFA canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
bsdf_frostbite Ran
ran on a synthesized input
JunzheJosephZhu/HiFA/nerf/bsdf.py
code served (permissive licence) · get_code("fc359761682b9f87")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 1) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small test tensors with distinct dimensions for clarity
# batch_size=2, vector_dim=4
batch_size = 2
vec_dim = 4

# nrm: normal vector, shape (batch_size, vec_dim)
nrm = torch.randn(batch_size, vec_dim)
nrm = torch.nn.functional.normalize(nrm, dim=-1)

# wi: incoming light direction, shape (batch_size, vec_dim)
wi = torch.randn(batch_size, vec_dim)
wi = torch.nn.functional.normalize(wi, dim=-1)

# wo: outgoing view direction, shape (batch_size, vec_dim)
wo = torch.randn(batch_size, vec_dim)
wo = torch.nn.functional.normalize(wo, dim=-1)

# linearRoughness: scalar or shape (batch_size, 1), values in [0, 1]
linearRoughness = torch.rand(batch_size, 1) * 0.8 + 0.1

ARGS = {
    "nrm": nrm,
    "wi": wi,
    "wo": wo,
    "linearRoughness": linearRoughness
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 1) — shape (2, 1) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
bsdf_lambert Ran
ran on a synthesized input
JunzheJosephZhu/HiFA/nerf/bsdf.py
code served (permissive licence) · get_code("20945f6ad60e0aea")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 1) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import math

torch.manual_seed(0)

# The function bsdf_lambert takes two parameters: nrm and wi
# Both are used with _dot which does torch.sum(x * y, -1, keepdim=True)
# This means both should be tensors where the last dimension can be multiplied element-wise
# Typical usage: nrm is a normal vector, wi is an incoming light direction
# Both should have shape (batch, ..., 3) for 3D vectors, but we'll use 4 for distinctness

nrm = torch.randn(2, 4)  # batch_size=2, vector_dim=4
wi = torch.randn(2, 4)   # batch_size=2, vector_dim=4

ARGS = {
    "nrm": nrm,
    "wi": wi,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 1) — shape (2, 1) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
bsdf_prepare_shading_normal Ran
ran on a synthesized input
JunzheJosephZhu/HiFA/nerf/bsdf.py
code served (permissive licence) · get_code("6e1b8b0343ac0d43")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors with distinct dimensions for different concepts
batch_size = 2
pos_dim = 3
normal_dim = 3

# pos: position, shape (batch, 3)
pos = torch.randn(batch_size, pos_dim)

# view_pos: viewer position, shape (batch, 3)
view_pos = torch.randn(batch_size, pos_dim)

# perturbed_nrm: perturbed normal map values, shape (batch, 3)
# This gets indexed as [..., 0:1], [..., 1:2], [..., 2:3]
perturbed_nrm = torch.randn(batch_size, 3)

# smooth_nrm: smooth normal, shape (batch, 3)
smooth_nrm = torch.randn(batch_size, normal_dim)

# smooth_tng: smooth tangent, shape (batch, 3)
smooth_tng = torch.randn(batch_size, normal_dim)

# geom_nrm: geometric normal, shape (batch, 3)
geom_nrm = torch.randn(batch_size, normal_dim)

# two_sided_shading: boolean flag
two_sided_shading = True

# opengl: boolean flag
opengl = False

ARGS = {
    "pos": pos,
    "view_pos": view_pos,
    "perturbed_nrm": perturbed_nrm,
    "smooth_nrm": smooth_nrm,
    "smooth_tng": smooth_tng,
    "geom_nrm": geom_nrm,
    "two_sided_shading": two_sided_shading,
    "opengl": opengl,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_encoder Ran
ran on a synthesized input
JunzheJosephZhu/HiFA/encoding.py
code served (permissive licence) · get_code("925971c108f1976f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'encoding': 'frequency_torch',
    'input_dim': 3,
    'multires': 6,
    'degree': 4,
    'num_levels': 16,
    'level_dim': 2,
    'base_resolution': 16,
    'log2_hashmap_size': 19,
    'desired_resolution': 2048,
    'align_corners': False,
    'interpolation': 'linear',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
freqencoder, gridencoder, shencoder, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
numpy_to_torch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
JunzheJosephZhu/HiFA/metric_utils.py
code served (permissive licence) · get_code("c999c85b86b93312")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 3, 4, 3) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function expects a numpy array with shape (batch, height, width, channels)
# It will transpose to (batch, channels, height, width)
# It multiplies by 2.0 and subtracts 1.0 (normalization)
# Values should be in range [0, 1] before normalization to get [-1, 1] after

batch_size = 2
height = 4
width = 3
channels = 3

# Create a small numpy array with values in [0, 1]
images = np.random.rand(batch_size, height, width, channels).astype(np.float32)

ARGS = {
    "images": images
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 4, 3) — shape (2, 3, 4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
score_from_method_for_dataset Ran
ran on a synthesized input
JunzheJosephZhu/HiFA/metric_utils.py
code served (permissive licence) · get_code("1b69fc463a92e2d5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile
import shutil
from pathlib import Path


class MockScorer:
    """Mock scorer that implements the score_gt method."""
    def score_gt(self, ref_paths, pred_paths):
        """Return a mock score based on number of predictions."""
        return float(len(pred_paths)) if pred_paths else 0.5


def create_mock_directory_structure():
    """Create a temporary directory structure for testing."""
    temp_dir = tempfile.mkdtemp()
    
    # Create input_path structure
    input_path = os.path.join(temp_dir, 'input')
    os.makedirs(input_path)
    
    # Create two example directories with rgba.png files
    for example_num in range(2):
        example_dir = os.path.join(input_path, f'example_{example_num}')
        os.makedirs(example_dir)
        # Create a dummy rgba.png file
        rgba_file = os.path.join(example_dir, 'rgba.png')
        with open(rgba_file, 'w') as f:
            f.write('dummy png content')
    
    # Create pred_path structure
    pred_path = os.path.join(temp_dir, 'predictions')
    os.makedirs(pred_path)
    
    # Create prediction directories matching examples
    for example_num in range(2):
        pred_example_dir = os.path.join(pred_path, f'model_example_{example_num}', 'results/images')
        os.makedirs(pred_example_dir)
        # Create dummy prediction files
        for pred_num in range(2):
            pred_file = os.path.join(pred_example_dir, f'*0000*lambertian_pred_{pred_num}.png')
            with open(pred_file, 'w') as f:
                f.write('dummy prediction')
    
    return temp_dir, input_path, pred_path


# Create the directory structure
temp_dir, input_path, pred_path = create_mock_directory_structure()

ARGS = {
    'my_scorer': MockScorer(),
    'input_path': input_path,
    'pred_path': pred_path,
    'score_type': 'clip',
    'rgb_name': 'lambertian',
    'result_folder': 'results/images',
    'first_str': '*0000*',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
poisson_mesh_reconstruction Not yet run
unverified (harvested, no recorded run)
JunzheJosephZhu/HiFA/meshutils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Adamdad/hash3D, is pointer only (licence: NONE) · get_code("b7f0e912438abda8")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Adamdad/hash3D, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
poisson_mesh_reconstruction 5 other papers
1 dated earlier, 4 later
2302.10663 (2023-02)
RealFusion: 360° Reconstruction of Any Object from a Single Image
2306.17843 (2023-06)
Magic123: One Image to High-Quality 3D Object Generation Using Both 2D and 3D Diffusion Priors
2308.11473 (2023-08)
IT3D: Improved Text-to-3D Generation with Explicit View Synthesis
and 2 more not named here
numpy_to_torch 2 other papers
2 later
2310.16818 (2023-10)
DreamCraft3D: Hierarchical 3D Generation with Bootstrapped Diffusion Prior
2312.13271 (2023-12)
Repaint123: Fast and High-quality One Image to 3D Generation with Progressive Controllable 2D Repainting

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The advancements in automatic text-to-3D generation have been remarkable. Most existing methods use pre-trained text-to-image diffusion models to optimize 3D representations like Neural Radiance Fields (NeRFs) via latent-space denoising score matching. Yet, these methods often result in artifacts and inconsistencies across different views due to their suboptimal optimization approaches and limited understanding of 3D geometry. Moreover, the inherent constraints of NeRFs in rendering crisp geometry and stable textures usually lead to a two-stage optimization to attain high-resolution details. This work proposes holistic sampling and smoothing approaches to achieve high-quality text-to-3D generation, all in a single-stage optimization. We compute denoising scores in the text-to-image diffusion model's latent and image spaces. Instead of randomly sampling timesteps (also referred to as noise levels in denoising score matching), we introduce a novel timestep annealing approach that progressively reduces the sampled timestep throughout optimization. To generate high-quality renderings in a single-stage optimization, we propose regularization for the variance of z-coordinates along NeRF rays. To address texture flickering issues in NeRFs, we introduce a kernel smoothing technique that refines importance sampling weights coarse-to-fine, ensuring accurate and thorough sampling in high-density regions. Extensive experiments demonstrate the superiority of our method over previous approaches, enabling the generation of highly detailed and view-consistent 3D assets through a single-stage training process.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2305.18766")
get_code_for_paper("2305.18766")
have("2305.18766")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2305.18766.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2305.18766.svg)](https://syntology.ai/paper/2305.18766)

Connect an agent — have() is free.