You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This README provides instructions for replacing the INCODE method with alternative methods in our project.
Introduction
INCODE is the default method used in this project, but you may want to explore other methods for specific use cases or research purposes. Follow the instructions below to make this substitution.
Encoding
This section provides an overview of the available encoding methods for positional information in the project. You can configure the encoding by setting the corresponding dictionary parameters as shown below:
Frequency Encoding
# Frequency Encodingpos_encode_freq= {'type':'frequency', 'use_nyquist': True, 'mapping_input':512}
type: The type of encoding, which is "Frequency."
use_nyquist: A boolean parameter that determines whether to use the Nyquist frequency. Set to True for using Nyquist, and False for not using it.
mmapping_input: An integer value for mapping input (image: int(max(H, W)), shape: int(max(H, W, T), audio: len(audio.data), CT: Number of CT measurement).
first_omega_0: The value of $\omega$ for the first hidden layer.
hidden_omega_0: The value of $\omega$ for subsequent hidden layers.
first_bias_scale: The bias scaling applied to the first layer. If first_bias_scale is provided, the bias for the first layer is initialized using a uniform distribution between -first_bias_scale and first_bias_scale.
scale_req_grad: A flag indicating whether the scaling parameters should be trainable. If set to True, the model learns optimal scale values during training, and the scale generation process will track gradients for backpropagation. If set to False, the scale is computed without gradient tracking, which can save memory and computation.