eba587e7549e252036f2500e9a3b3a18a778b335,dataset/batch_image.py,ImagesBatch,assemble,#ImagesBatch#Any#,250
Before Change
if "must have the same shape" in message:
min_shape = np.array([x.shape for x in all_res]).min(axis=0)
all_res = [arr[:min_shape[0], :min_shape[1]].copy() for arr in all_res]
new_images = np.stack(all_res)
setattr(self, component, new_images)
return self
@action
After Change
all_res = list(zip(*all_res))
else:
components = [components]
all_res = [all_res]
for component, res in zip(components, all_res):
self.assemble_component(all_res, component)
setattr(self, component, new_data)
return self
@action
def convert_to_pil(self, components="images"):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: analysiscenter/batchflow
Commit Name: eba587e7549e252036f2500e9a3b3a18a778b335
Time: 2017-11-17
Author: rhudor@gmail.com
File Name: dataset/batch_image.py
Class Name: ImagesBatch
Method Name: assemble
Project Name: chris-chris/pysc2-examples
Commit Name: 3a4902becbd7c75d55ef6c7c289afb87d4678467
Time: 2017-10-09
Author: sjhshy@gmail.com
File Name: common/vec_env/subproc_vec_env.py
Class Name: SubprocVecEnv
Method Name: reset
Project Name: tristandeleu/pytorch-maml-rl
Commit Name: 96fe8b585cb68370315afaef8d99af2f77fe942a
Time: 2018-04-12
Author: tristan.deleu@gmail.com
File Name: maml_rl/envs/subproc_vec_env.py
Class Name: SubprocVecEnv
Method Name: reset