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

"transform" not defined problem #3

Open
lyc6749 opened this issue Nov 16, 2021 · 4 comments
Open

"transform" not defined problem #3

lyc6749 opened this issue Nov 16, 2021 · 4 comments

Comments

@lyc6749
Copy link

lyc6749 commented Nov 16, 2021

Hi, I encounter the problem that "transform" not is defined.
comp = transform(comp) mask = tf.to_tensor(mask) real = transform(real)

@yifanjiang19
Copy link
Contributor

Hi @lyc6749

Sorry about the late reply. Seems that I accidentally delete some lines when cleaning the code. Could you please add

transform = get_transform(opt)

before this code.

@symao
Copy link

symao commented Nov 30, 2021

Hi @lyc6749

Sorry about the late reply. Seems that I accidentally delete some lines when cleaning the code. Could you please add

transform = get_transform(opt)

before this code.

Hi @yueruchen . It needs preprocessing,load_size,crop_size,no_filp parameters in opt to get transform, while those parameters are not provided in code. Could you please release the opt configuration parameters?

@yifanjiang19
Copy link
Contributor

Hi @symao,

sorry, missing these lines:

opt.norm = "IN"
opt.preprocess = "none"
opt.no_flip = True

@yifanjiang19
Copy link
Contributor

Hi @lyc6749 @symao ,

I just updated the repo, the newest version should be bug free.

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