-
Notifications
You must be signed in to change notification settings - Fork 36
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
Poor Results #16
Comments
I suspect the issue is with the environment. Specifically, I see that @k128 is using Tensorflow version 2.10 while I was using 2.0. |
When I run "conda create -n environment.yml", it creates a blank environment named "environment.yml". I'm guessing the setup instructions should instead say something like "conda env create --file environment.yml'. However, when I run this, I get the message below, so I'm unable to replicate your environment for testing. Error message: ResolvePackageNotFound:
|
As an update, I tried this on a newer computer and got different, but similarly poor results. I've attempted to get as close to the environment as possible, but tensorflow-addons 0.6.0 is no longer available. It's a strange problem, since usually different package versions simply throw an error. I'm curious whether it still works for you with a newer version of tensorflow. |
same promblem, results are all noise. And the inference speed of the model is quite slow. |
I discovered that my issue is related to the graphics card model. The 3090 has specific requirements for the CUDA version (CUDA 11 and above), which makes it incompatible with the environment provided by the repository. Using a lower-end graphics card or a previous generation card can resolve this issue. Alternatively, upgrading the CUDA version might also solve the problem. |
What is the CUDA version you used @jinchiniao ? |
CUDA10.1 can successfully run this repo |
I tested on 3090 and A6000 chips, and unfortunately I am also getting the noisy images. My guess is that the checkpoints were made using past generation chips and are incompatible with the later generation chips. To make it work it would probably require training from scratch on a newer chip :/ |
I'm getting poor results running the pretrained model. For example, with both id and attr as:
I get a prediction of:
I'm running:
python test.py Name --pretrained_models_path checkpoints --id_dir "testinput" --attr_dir "testtarget" --output_dir "results" --test_func infer_on_dirs
The only change I made to the code was stylegan.py:121, where I changed "_convolution_op" to "convolution_op" since it seems Keras updated the function name.
Additional info:
OS - Windows 11
conda list:
Name Version Build Channel
absl-py 1.2.0 pypi_0 pypi
astunparse 1.6.3 pypi_0 pypi
bzip2 1.0.8 he774522_0
ca-certificates 2022.07.19 haa95532_0
cachetools 5.2.0 pypi_0 pypi
certifi 2022.9.14 py37haa95532_0
charset-normalizer 2.1.1 pypi_0 pypi
cmake 3.22.1 h9ad04ae_0
colorama 0.4.5 pypi_0 pypi
cudatoolkit 11.2.2 h933977f_10 conda-forge
cudnn 8.1.0.77 h3e0f4f4_0 conda-forge
cycler 0.11.0 pypi_0 pypi
dlib 19.24.0 pypi_0 pypi
flatbuffers 2.0.7 pypi_0 pypi
fonttools 4.37.3 pypi_0 pypi
gast 0.4.0 pypi_0 pypi
google-auth 2.11.1 pypi_0 pypi
google-auth-oauthlib 0.4.6 pypi_0 pypi
google-pasta 0.2.0 pypi_0 pypi
grpcio 1.48.1 pypi_0 pypi
h5py 3.7.0 pypi_0 pypi
idna 3.4 pypi_0 pypi
imageio 2.22.0 pypi_0 pypi
importlib-metadata 4.12.0 pypi_0 pypi
keras 2.10.0 pypi_0 pypi
keras-preprocessing 1.1.2 pypi_0 pypi
kiwisolver 1.4.4 pypi_0 pypi
libclang 14.0.6 pypi_0 pypi
libuv 1.40.0 he774522_0
lz4-c 1.9.3 h2bbff1b_1
markdown 3.4.1 pypi_0 pypi
markupsafe 2.1.1 pypi_0 pypi
matplotlib 3.5.3 pypi_0 pypi
mtcnn 0.1.1 pypi_0 pypi
networkx 2.6.3 pypi_0 pypi
numpy 1.21.6 pypi_0 pypi
oauthlib 3.2.1 pypi_0 pypi
opencv-python 4.6.0.66 pypi_0 pypi
openssl 1.1.1q h2bbff1b_0
opt-einsum 3.3.0 pypi_0 pypi
packaging 21.3 pypi_0 pypi
pillow 9.2.0 pypi_0 pypi
pip 22.1.2 py37haa95532_0
protobuf 3.19.5 pypi_0 pypi
pyasn1 0.4.8 pypi_0 pypi
pyasn1-modules 0.2.8 pypi_0 pypi
pyparsing 3.0.9 pypi_0 pypi
python 3.7.13 h6244533_0
python-dateutil 2.8.2 pypi_0 pypi
pywavelets 1.3.0 pypi_0 pypi
requests 2.28.1 pypi_0 pypi
requests-oauthlib 1.3.1 pypi_0 pypi
rsa 4.9 pypi_0 pypi
scikit-image 0.19.3 pypi_0 pypi
scipy 1.7.3 pypi_0 pypi
setuptools 63.4.1 py37haa95532_0
six 1.16.0 pypi_0 pypi
sqlite 3.39.2 h2bbff1b_0
tensorboard 2.10.0 pypi_0 pypi
tensorboard-data-server 0.6.1 pypi_0 pypi
tensorboard-plugin-wit 1.8.1 pypi_0 pypi
tensorflow 2.10.0 pypi_0 pypi
tensorflow-addons 0.18.0 pypi_0 pypi
tensorflow-estimator 2.10.0 pypi_0 pypi
tensorflow-io-gcs-filesystem 0.27.0 pypi_0 pypi
termcolor 2.0.1 pypi_0 pypi
tifffile 2021.11.2 pypi_0 pypi
tqdm 4.64.1 pypi_0 pypi
typeguard 2.13.3 pypi_0 pypi
typing-extensions 4.3.0 pypi_0 pypi
urllib3 1.26.12 pypi_0 pypi
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
werkzeug 2.2.2 pypi_0 pypi
wheel 0.37.1 pyhd3eb1b0_0
wincertstore 0.2 py37haa95532_2
wrapt 1.14.1 pypi_0 pypi
xz 5.2.5 h8cc25b3_1
zipp 3.8.1 pypi_0 pypi
zlib 1.2.12 h8cc25b3_3
zstd 1.5.2 h19a0ad4_0
The text was updated successfully, but these errors were encountered: