brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
instance-featuresUse pix2pixHD's instance-aware feature encoding, clustering, feature caches, and feature-conditioned train/test workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a pix2pixHD task depends on encoded instance features, label-level feature variants, precomputed feature maps, or the clustered .npy cache that drives feature-conditioned training and inference.
encode_features.py and precompute_feature_maps.py--instance_feat, --label_feat, --load_features, --feat_num, --n_clustersfeatures.npy, features_clustered_*.npy, and *_feat/ dataset foldersscikit-learn availabilityscripts/*feat*.shinstance_feat and label_feat both enable the feature path. The published helper recipes default to instance_feat; label_feat redirects the feature source to labels in the encoder path and is mainly relevant when you are reasoning about the model/UI code.load_features means the dataset supplies precomputed feature maps from phase_feat/ and the model does not build netE.feat_num is the channel width of the feature vectors. Changing it invalidates old features.npy, features_clustered_*.npy, and train_feat/ caches.n_clusters controls the per-label KMeans count and the cluster filename suffix. The test-time default is features_clustered_010.npy.From this sub-skill directory, pass the actual pix2pixHD checkout as --repo-root:
python scripts/check_feature_cache.py --repo-root <repo-root> --name label2city_512p_feat --mode full --check-generator --check-encoder
python scripts/build_feature_command.py --repo-root <repo-root> --recipe train_1024p_feat_24G
scikit-learn / KMeans are available.*_feat/ folders, and checkpoint expectations.