MokkeMeguru / TFGENZOO

Library about construction helper for Generative models e.g. Flow-based Model with Tensorflow 2.x.
https://mokkemeguru.github.io/TFGENZOO/
12 stars 2 forks source link

ModuleNotFoundError: No module named 'TFGENZOO.optimizers' #63

Closed gitlabspy closed 4 years ago

gitlabspy commented 4 years ago
>>> import TFGENZOO
>>> TFGENZOO
<module 'TFGENZOO' from '.../TFGENZOO/TFGENZOO/__init__.py'>
>>> TFGENZOO.optimizers
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'TFGENZOO' has no attribute 'optimizers'
>>> 
MokkeMeguru commented 4 years ago

Sorry you can import like this

from TFGENZOO.optimizers import transformer_schedule
gitlabspy commented 4 years ago
from TFGENZOO.optimizers import transformer_schedule
ModuleNotFoundError: No module named 'TFGENZOO.optimizers'

🤔Still the same error... What is the right way to install this package without installing tensorflow and some other stuffs btw?

gitlabspy commented 4 years ago
ImportError: cannot import name 'SequentialWithKwargs' from 'TFGENZOO.flows.affine_coupling' (/data/lhb/anaconda2/envs/tf21/lib/python3.7/site-packages/TFGENZOO-0.1.0a0-py3.7.egg/TFGENZOO/flows/affine_coupling.py)

I got this error after importing it absolutely.

MokkeMeguru commented 4 years ago

Can you try TFGENZOO.v1.0-beta2 ? I forgot the readme.org update (my document follows v1.0-beta2).

gitlabspy commented 4 years ago

It works! Seems like I had the old version installed all the time. Thx!