Questions regarding image in-painting and out-painting
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 25/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python, pytorch
- Domain
- machine-learning
Research direction
Start from the PyTorch in-painting and out-painting implementation shown in the issue, then compare its assignments with the paper's wording and Figure 1. A complete response should clarify whether the block uses independent random values or one constant value, and whether multiplying np.random.rand by 1.0 has any purpose.
Written by the indexing model from the issue text.
Description
Thank you for your amazing work. I am implementing your method on my own dataset. I have questions regarding the PyTorch version of in-painting and out-painting. It looks like you replace the pixels within the window with random values in both transformations. For example, in in-painting, you use:
x[:,
noise_x:noise_x+block_noise_size_x,
noise_y:noise_y+block_noise_size_y,
noise_z:noise_z+block_noise_size_z] = np.random.rand(block_noise_size_x,
block_noise_size_y,
block_noise_size_z, ) * 1.0
which assigns random values to the block, instead of:
x[:,
noise_x:noise_x+block_noise_size_x,
noise_y:noise_y+block_noise_size_y,
noise_z:noise_z+block_noise_size_z] = np.random.rand()
In this case the block is replaced with a single random value, which is the case according to your paper:
We then assign a random value to all pixels outside the window while retaining the original intensities for the pixels within. As for in-painting, we retain the original intensities outside the window and replace the intensity values of the inner pixels with a constant value.
This is also the case suggested by fig.1 in the paper. Which one is correct? Also I don't quite understand why the random noise is multiplied with 1.0 in both in-painting and out-painting. Since the np.random.rand function generates float numbers, the multiplication seems unnecessary.
- Dominant language
- Jupyter Notebook
- Stars
- 791
- Forks
- 141
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MrGiovanni/ModelsGenesis
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
MrGiovanni/ModelsGenesis#62 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
MrGiovanni/ModelsGenesis#61 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
MrGiovanni/ModelsGenesis#60 ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
MrGiovanni/ModelsGenesis#59 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
MrGiovanni/ModelsGenesis#58 ·
All issues in MrGiovanni/ModelsGenesis
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bancolombia/sentinel#21 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
infer-actively/pymdp#454 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
UKGovernmentBEIS/inspect_evals#2486 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100