Skip to content

Commit f989c17

Browse files
committed
new default alphas
1 parent e9e0c7f commit f989c17

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

analyze_color_shift.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def compute_color_statistics(image: np.ndarray) -> Dict:
6868
Compute comprehensive color statistics for an image.
6969
7070
Returns dict with:
71-
- RGB mean, std, skewness, kurtosis per channel
71+
- RGB mean, std, skewness per channel
7272
- LAB mean, std per channel
7373
- Overall luminance statistics
7474
"""
@@ -80,7 +80,6 @@ def compute_color_statistics(image: np.ndarray) -> Dict:
8080
stats_dict[f'rgb_{channel}_mean'] = np.mean(channel_data)
8181
stats_dict[f'rgb_{channel}_std'] = np.std(channel_data)
8282
stats_dict[f'rgb_{channel}_skewness'] = stats.skew(channel_data)
83-
stats_dict[f'rgb_{channel}_kurtosis'] = stats.kurtosis(channel_data)
8483

8584
# LAB statistics
8685
lab = rgb_to_lab(image)

generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def num_range(s: str) -> List[int]:
4545
@click.option('--projected-w', help='Projection result file', type=str, metavar='FILE')
4646
@click.option('--outdir', help='Where to save the output images', type=str, required=True, metavar='DIR')
4747
@click.option('--weight-vector', help='Path to weight vector file (.npy)', type=str, metavar='FILE')
48-
@click.option('--alphas', type=num_range, help='Alpha values for weight modulation (e.g., "-10,0,10" or "-10-10")', default='-10,-5,0,5,10', show_default=True)
48+
@click.option('--alphas', type=num_range, help='Alpha values for weight modulation (e.g., "-10,0,10" or "-10-10")', default='-10,-5, -2, -1, 0, 1, 2, 5, 10', show_default=True)
4949
@click.option('--style-range', type=(int, int), help='Range of style blocks to apply weight vector (start, end). Coarse: 0-8, Middle: 4-12, Fine: 12-17. Default: all (0, 17)', default=(0, 17), show_default=True)
5050
def generate_images(
5151
ctx: click.Context,

0 commit comments

Comments
 (0)