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

Question about the autocoder and training data #8

Open
Adele0108 opened this issue Dec 14, 2023 · 3 comments
Open

Question about the autocoder and training data #8

Adele0108 opened this issue Dec 14, 2023 · 3 comments

Comments

@Adele0108
Copy link

Hi, there is no details about the encoder and decoder in the paper and code. I would like to ask what the specific model structure of the autocoder? And what's the information of training data, do they include the super resolution ground truth? Looking forward to your reply, thanks~

@jueqiw
Copy link
Member

jueqiw commented Dec 21, 2023

Hi, for the model part of this project, I use the model from this Brain LDM paper. You can find the autoencoder architecture here. I use the images from the IXI dataset, which are high resolution, and we create low-resolution images from them.

Sorry for my late reply.

@06Liz
Copy link

06Liz commented Jun 21, 2024

from pathlib import Path

Use environment variables to auto-detect whether we are running an a Compute Canada cluster:

Thanks to https://github.com/DM-Berger/unet-learn/blob/master/src/train/load.py for this trick.

COMPUTECANADA = False
TMP = os.environ.get("SLURM_TMPDIR")

if TMP:
COMPUTECANADA = True

if COMPUTECANADA:
INPUT_FOLDER = Path(str(TMP)).resolve() / "work" / "inputs"
MASK_FOLDER = Path(str(TMP)).resolve() / "work" / "inputs" / "masks"
PRETRAINED_MODEL_FOLDER = Path(str(TMP)).resolve() / "work" / "trained_models"
PRETRAINED_MODEL_DDPM_PATH = (
Path(str(TMP)).resolve() / "work" / "trained_models" / "ddpm"
)
PRETRAINED_MODEL_VAE_PATH = (
Path(str(TMP)).resolve() / "work" / "trained_models" / "vae"
)
PRETRAINED_MODEL_DECODER_PATH = (
Path(str(TMP)).resolve() / "work" / "trained_models" / "decoder"
)
PRETRAINED_MODEL_VGG_PATH = (
Path(str(TMP)).resolve() / "work" / "trained_models" / "vgg16.pt"
)
OUTPUT_FOLDER = Path(str(TMP)).resolve() / "work" / "outputs"
else:
INPUT_FOLDER = Path(file).resolve().parent.parent.parent / "data" / "IXI"
MASK_FOLDER = Path(file).resolve().parent.parent / "masks"
OASIS_FOLDER = Path(file).resolve().parent.parent.parent / "data" / "OASIS"
PRETRAINED_MODEL_FOLDER = (
Path(file).resolve().parent.parent.parent / "data" / "trained_models"
)
这些预训练模型和数据你是怎么处理和下载的 @Adele0108

@06Liz
Copy link

06Liz commented Jun 22, 2024

Where the decoder is downloaded from

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

3 participants