wire icon indicating copy to clipboard operation
wire copied to clipboard

Image Representations Help: Fast Image Structure Overfitting, Difficult/Slow in getting Fine Details

Open EladWarshawsky opened this issue 2 years ago • 0 comments

Overview:

I have utilized the Wire activation alongside a TensorDataset containing RGB values of images and their corresponding coordinates. Despite achieving a mean squared error (MSE) loss as low as 0.0002, the image's details, especially the hair, appear blurry.

Details:

Normalization: The images are normalized by dividing by the maximum value of 255. Coordinates: Generated from meshgrids ranging between (-1,1). Batch Size: 256x256 Network Architecture: 1 layer with 128 neurons. ComplexGaborLayer2D utilized. Hyperparameters: Sigma (σ) and Omega (ω): 10 Number of iterations (niters): 5000 Learning rate: 0.02 Adam optimizer with a decaying schedule: scheduler = LambdaLR(optim, lambda x: 0.2**min(x/niters, 1)) Positional Encoding: Currently set to false. Should I enable it?

Challenges:

Despite achieving an impressive MSE loss, the image's hair details remain blurry. Given the aforementioned details:

Should I reconsider the hyperparameters? Is there a need to adjust the learning rate, batch size, or the number of neurons/layers? Should I enable positional encoding for improved results? I would greatly appreciate any insights or recommendations on the next steps to enhance the image's detail and quality.

Edit:

I thought about it a bit more, would starting with a downsampled image help with getting the structures correct, and then retraining on batches of full resolution pixels to get the detail even more clear be a good idea?

EladWarshawsky avatar Jan 10 '24 00:01 EladWarshawsky