68109fcc80b02c45cd069c2d220b8b9e0705ac3d,plugins/extract/pipeline.py,Extractor,_set_plugin_batchsize,#Any#Any#,463
Before Change
def _set_plugin_batchsize(plugin, available_vram):
Set the batch size for the given plugin based on given available vram
plugin.batchsize = int(max(1, available_vram // plugin.vram_per_batch))
logger.verbose("Reset batchsize for %s to %s", plugin.name, plugin.batchsize)
def _join_threads(self):
Join threads for current pass
for plugin in self._active_plugins:
After Change
Do not update plugins which have a vram_per_batch of 0 (CPU plugins) due to
zero division error.
if plugin.vram_per_batch != 0:
plugin.batchsize = int(max(1, available_vram // plugin.vram_per_batch))
logger.verbose("Reset batchsize for %s to %s", plugin.name, plugin.batchsize)
def _join_threads(self):
Join threads for current pass
for plugin in self._active_plugins:
plugin.join()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: deepfakes/faceswap
Commit Name: 68109fcc80b02c45cd069c2d220b8b9e0705ac3d
Time: 2019-10-29
Author: 36920800+torzdf@users.noreply.github.com
File Name: plugins/extract/pipeline.py
Class Name: Extractor
Method Name: _set_plugin_batchsize
Project Name: deepfakes/faceswap
Commit Name: 4376bbf4f85f9771b0e3752ccf9504efb4e43d21
Time: 2019-01-22
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/lib_alignments/jobs.py
Class Name: Rename
Method Name: rename_faces
Project Name: sony/nnabla
Commit Name: f34b56a0339c4510d0789f829df8b5d3b70a3f85
Time: 2019-07-01
Author: Takuya.Yashima@sony.com
File Name: python/src/nnabla/utils/nnp_graph.py
Class Name: NnpNetwork
Method Name: _get_variable_or_create