-
Notifications
You must be signed in to change notification settings - Fork 22
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
DATA_DIR not respected #7
Comments
Simplest fix I'd recommend is setting As a fix from our side, we could use an env variable or refer to another path. What do you think @edebrouwer, @ExpectationMax, @mi92? |
@mohit-kumar-27 any updates on this? Does the proposed workaround solve your problem? |
Hello Bastain, |
This is how I modified the TOGL/topognn/init.py import os.path class Tasks(Enum):
Still the code searches in the wrong directory and gives the following error |
This is the right way; I think you need to install TOGL again afterwards to
refresh the file in your virtual environment.
…On 22 June 2022 20:10:53 Mohit Kumar ***@***.***> wrote:
This is how I modified the TOGL/topognn/__init__.py
import os.path
from enum import Enum, auto
**DATA_DIR='/home/mohit/TOGL/data/'
#DATA_DIR = os.path.join(os.path.dirname(__file__), '..', 'data')**
class Tasks(Enum):
"""Valid tasks."""
GRAPH_CLASSIFICATION = auto()
NODE_CLASSIFICATION = auto()
NODE_CLASSIFICATION_WEIGHTED = auto()
Still the code searches in the wrong directory and gives the following error
**FileNotFoundError: [Errno 2] No such file or directory:
'/scott/mohit/anaconda3/envs/togl/lib/python3.8/site-packages/topognn/../data/Benchmark_idx/DD_train.index'**
--
Reply to this email directly or view it on GitHub:
#7 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
Hi Bastain, I tried running the code by reinstalling the project and DATA_DIR error was resolved, but now I get the following error I created a new wandb account and gave the api key, when the program asked me to, then I got this error This is the full output wandb: Currently logged in as: mohitk2 (use During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): |
You can start
@ExpectationMax @edebrouwer: should we solve this more generically and remove the team name from the WandB logger? Or potentially default to a tensorboard logger? |
I ran the following from my terminal (togl) mohit@user-Default-string:~/TOGL$ python topognn/train_model.py --model TopoGNN --dataset DD --batch_size 20 --lr 0.0007 I get the following error: Traceback (most recent call last):
File "/scott/mohit/anaconda3/envs/togl/lib/python3.8/site-packages/pytorch_lightning/accelerators/accelerator.py", line 73, in start_training wandb: Waiting for W&B process to finish, PID 11662 Could you suggest what needs to be done here? |
Seems to be a problem with wandb; please try PS: Please read and follow these instructions for formatting your messages. |
I tried The issue seems to be with pytorch_lightning and multiprocessing |
Hmm, might be better to open a separate issue with Closing this issue for now since the original problem has been resolved. Please feel free to open another issue for anything else related to TOGL. |
Hi Bastain!
I tried installing without poetry and running your code.
Everything worked...
I am not able to figure out how to set the DATA_DIR , as the code is looking for the data in the wrong directory.
Here is the output that I get
Originally posted by @mohit-kumar-27 in #6 (comment)
The text was updated successfully, but these errors were encountered: