Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running #3

Open
ghost opened this issue Aug 1, 2023 · 3 comments
Open

Error while running #3

ghost opened this issue Aug 1, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 1, 2023

I am really sorry to keep bugging you again and again, but I really wanna request you to help me get it running.

Traceback (most recent call last):
File "C:\Users\MyPC\Downloads\HDR\inference.py", line 151, in
pred_hdr = inference(ldr_val, args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\MyPC\Downloads\HDR\inference.py", line 117, in inference
pred = generator_in_step(ldr, training= False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\MyPC\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\util\traceback_utils.py", line 153, in error_handler
raise e.with_traceback(filtered_tb) from None
File "C:\Users\MyPC\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\framework\func_graph.py", line 1200, in autograph_handler
raise e.ag_error_metadata.to_exception(e)
tensorflow.python.framework.errors_impl.ResourceExhaustedError: in user code:

File "C:\Users\MyPC\Downloads\HDR\inference.py", line 88, in generator_in_step  *
    sunpose_cmf, sunpose_actvMaps= _sun.sunposeEstimation(ldr, training=training)
File "C:\Users\MyPC\Downloads\HDR\sunpose_net.py", line 65, in sunposeEstimation  *
    fc1 = self.fc1(flat)
File "C:\Users\MyPC\AppData\Local\Programs\Python\Python311\Lib\site-packages\keras\utils\traceback_utils.py", line 70, in error_handler  **
    raise e.with_traceback(filtered_tb) from None
File "C:\Users\MyPC\AppData\Local\Programs\Python\Python311\Lib\site-packages\keras\backend.py", line 2101, in random_uniform
    return tf.random.stateless_uniform(

ResourceExhaustedError: {{function_node __wrapped__StatelessRandomUniformV2_device_/job:localhost/replica:0/task:0/device:CPU:0}} OOM when allocating tensor with shape[37748736,4096] and type float on /job:localhost/replica:0/task:0/device:CPU:0 by allocator cpu [Op:StatelessRandomUniformV2]
@krisnegi123
Copy link

Hey, actually I am facing quite a very similar issue. Can anyone please help resolve this?

@ghost
Copy link
Author

ghost commented Aug 2, 2023

Can you please help?

@ghost
Copy link
Author

ghost commented Aug 3, 2023

???????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant