Closed Uncertain-Quark closed 1 year ago
@Uncertain-Quark Are you using "fit_generator":true
as described in #1761 comment?
...
"scenario": {
"kwargs": {
"fit_generator": true
},
...
When I run using a batch size of 64, I don't see the GPU memory usage go above 6 GB.
After 0.16.2 release, I am stuck with the following OOM issue. I raised this previously and was fixed in 0.16.1, This is the error log:
Traceback (most recent call last):
File "/home/usr/miniconda3/envs/armory_core/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, │ │ └ {'name': 'main', 'doc': '\nMain script for running scenarios. Users will run a scenario by calling:\n armory r... │ └ <code object at 0x7f454058fb50, file "/home/usr/miniconda3/envs/armory_core/lib/python3.10/site-packages/armory/s...
└ <function _run_code at 0x7f4629d19900>
File "/home/usr/miniconda3/envs/armory_core/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
│ └ {'name': 'main', 'doc': '\nMain script for running scenarios. Users will run a scenario by calling:\n armory r...
└ <code object at 0x7f454058fb50, file "/home/usr/miniconda3/envs/armory_core/lib/python3.10/site-packages/armory/s...
File "/home/usr/miniconda3/envs/armory_core/lib/python3.10/site-packages/armory/scenarios/main.py", line 228, in
run_config(
└ <function run_config at 0x7f451f411120>
File "/home/usr/miniconda3/envs/armory_core/lib/python3.10/site-packages/armory/scenarios/main.py", line 144, in run_config
scenario.evaluate()
│ └ <function Scenario.evaluate at 0x7f4511fa9120>
└ <armory.scenarios.poison.Poison object at 0x7f462941aef0>
tensorflow.python.framework.errors_impl.ResourceExhaustedError: {{function_node wrappedSubdevice/job:localhost/replica:0/task:0/device:GPU:0}} failed to allocate memory [Op:Sub]
Originally posted by @Uncertain-Quark in https://github.com/twosixlabs/armory/issues/1761#issuecomment-1377823605