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

model/pde_1d_surrogate_model/burgers_operator.py missing package "pde_gen_control". #1

Open
guracat opened this issue Dec 11, 2024 · 0 comments

Comments

@guracat
Copy link

guracat commented Dec 11, 2024

`import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import Dataset, DataLoader
from torch.utils.data.dataset import random_split

import numpy as np
import random
import os
import sys
import matplotlib.pyplot as plt
sys.path.append(os.path.join(os.path.dirname("file"), '..'))
sys.path.append(os.path.join(os.path.dirname("file"), '..', '..'))
sys.path.append(os.path.join(os.path.dirname("file"), '..', '..', '..'))
try:
from scripts.utils import *
from scripts.burgers_numeric import *
from scripts.models import *
except:
from .scripts.utils import *
from .scripts.burgers_numeric import *
from .scripts.models import *
from pde_gen_control.data_burgers_1d import Burgers1DSimple, Burgers`

When run python /model/pde_1d_surrogate_model/burgers_operator.py --date_time "2024-01-09_1d_surrogate_partial_ob_partial_ctr_autoregress-3" --epochs 500 --gpu 0 --train_batch_size 151 --autoregress_steps 3 --dataset_path "/dataset_control_burgers/free_u_f_1e5_front_rear_quarter" --is_partially_observable 1 --is_partially_controllable 1 --lr 0.001
get ModuleNotFounderror:
from pde_gen_control.data_burgers_1d import Burgers1DSimple, Burgers ModuleNotFoundError: No module named 'pde_gen_control'

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