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

About semisupervised_MNIST_CIFAR10 #32

Open
Austinzhenghua opened this issue Jul 10, 2021 · 4 comments
Open

About semisupervised_MNIST_CIFAR10 #32

Austinzhenghua opened this issue Jul 10, 2021 · 4 comments

Comments

@Austinzhenghua
Copy link

When I run main_superpixels_contrastive.py
I got
f = pickle.load(f)
ModuleNotFoundError: No module named 'data.superpixels'

I don't know why "f = pickle.load(f)" can cause this problem?

@yongduosui
Copy link
Collaborator

  1. Please check if the dataset is on the correct path.
  2. Maybe you can try to change the other different version for pickle.

@Austinzhenghua
Copy link
Author

Thank you so much, I found the reason is that, there are no init files in each package.

Another problem is when I run main_superpixels_graph_classification.py I got :

I] Loading dataset MNIST...
train, test, val sizes : 5500 10000 5000
[I] Finished loading.
[I] Data load time: 25.4718s

MODEL DETAILS:

MODEL/Total parameters: GIN 105434
----------------------------------------Finetune Option----------------------------------------
Data Name: [MNIST]
Model Name: [GIN]
Training Graphs:[5500]
Valid Graphs: [5000]
Test Graphs: [10000]
Number Classes: [10]
Learning rate: [0.001]
----------------------------------------Contrastive Option----------------------------------------
Load model: [True]
Aug Type: [drop_nodes]
Projection head:[True]


Traceback (most recent call last):
File "/home/zhenghua/pythoncode/Graph_cl_MNIST_CIFAR10/finetuning/main_superpixels_graph_classification.py", line 332, in
main()
File "/home/zhenghua/pythoncode/Graph_cl_MNIST_CIFAR10/finetuning/main_superpixels_graph_classification.py", line 298, in main
train_val_pipeline(MODEL_NAME, dataset, params, net_params, args)
File "/home/zhenghua/pythoncode/Graph_cl_MNIST_CIFAR10/finetuning/main_superpixels_graph_classification.py", line 79, in train_val_pipeline
checkpoint = torch.load(load_file_name[-1])
IndexError: list index out of range

I am not sure why the Training Graphs become 5500. The pretrain training graph is 55000, Thank you so much, I need your help. @yongduosui yongduosui

@yongduosui
Copy link
Collaborator

This is finetuning code, please use the pretraining code first.

@Austinzhenghua
Copy link
Author

Austinzhenghua commented Jul 11, 2021 via email

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