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

Running the code #2

Open
ahmedshoaib opened this issue Feb 3, 2019 · 1 comment
Open

Running the code #2

ahmedshoaib opened this issue Feb 3, 2019 · 1 comment

Comments

@ahmedshoaib
Copy link

hi,
My python config is py = 3.6 , Tensorflow = 1.12
I tried running th code as it is on my machine and got a runtime error,

File "main.py", line 16, in main
scan = SCAN(sess, cfg)
TypeError: init() takes 2 positional arguments but 3 were given

I've also tried py=3.4 and tensorflow=1.10 it gives the same error.
Can you please help me out?

@Erientes
Copy link

For what it's worth:

In SCAN.py, replace

class SCAN(object):
   def __init__(self, cfg):
      self.cfg = cfg
      self.img_encoder = VAE.Encoder()
      self.img_decoder = VAE.Decoder()
      self.sym_encoder = MLP.Encoder()
      self.sym_decoder = MLP.Decoder()

by

class SCAN(object):
   def __init__(self, sess, cfg):
      self.sess = sess
      self.cfg = cfg
      self.img_encoder = VAE.Encoder(cfg)
      self.img_decoder = VAE.Decoder(cfg)
      self.sym_encoder = MLP.Encoder(cfg)
      self.sym_decoder = MLP.Decoder(cfg)

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