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

'from augment import Augmenter' Problem and GPU Restrictions #1

Open
mflp opened this issue Oct 5, 2023 · 1 comment
Open

'from augment import Augmenter' Problem and GPU Restrictions #1

mflp opened this issue Oct 5, 2023 · 1 comment

Comments

@mflp
Copy link

mflp commented Oct 5, 2023

  1. I have a compilation problem while trying to run your CampER code.

Although I installed the augment library (or augment tool) with 'pip install augment', I do take the following error:

"Traceback (most recent call last):
File "/CAMPER/Code/CampER-main/main.py", line 9, in
from data import *
File "
/CAMPER/Code/CampER-main/data.py", line 8, in
from augment import Augmenter
ImportError: cannot import name 'Augmenter' from 'augment' (~/CAMPER/Code/CampER-main/.../lib/python3.9/site-packages/augment.py)"

Do I install, by any chance, a wrong library? Could you enlighten it?

  1. I have a quick question on GPU memory capacity.

Now, I haven't been able to pass over the compilation process. But, in case that I passed it, I would need to have a simple answer to the following GPU capacity question:

'NVIDIA A100 40G GPU' is listed as a requirement. If I have 32 GB GPU working, then, with longer running times, is there any chance to run the code on 32GB GPU or 40GB GPU memory is a must?

Thanks for your time.

@yuxiang-guo
Copy link
Contributor

Thanks for your questions.
The error about importing 'Augmenter' is due to the code version. The 'Augmenter' is not used in this version, so you can just delete line 8 in data.py 'from augment import Augmenter'. Thanks for your reminder. I have updated data.py.

As for the GPU capacity, you can try to decrease the batch size, but the performance may be affected.

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

2 participants