Git Product home page Git Product logo

Comments (7)

h-s-dev avatar h-s-dev commented on September 26, 2024

お問い合わせありがとうございます
ローカルで実行した際の環境を教えて頂けますでしょうか?
Pythonのバージョン、PyTorch、その他のライブラリのバージョンが分かりましたらお願いします

from gan_sample.

YusukeHashimotoPhD avatar YusukeHashimotoPhD commented on September 26, 2024

お返事、ありがとうございます。
以下に、関係ありそうなライブラリのバージョンを添付させて頂きます。

lightgbm==3.3.5
matplotlib==3.7.1
matplotlib-inline==0.1.6
numpy==1.24.2
nvidia-cublas-cu11==11.10.3.66
nvidia-cuda-nvrtc-cu11==11.7.99
nvidia-cuda-runtime-cu11==11.7.99
nvidia-cudnn-cu11==8.5.0.96
opencv-python==4.7.0.72
pandas==1.5.3
plotly==5.13.1
scikit-learn==1.2.1
scipy==1.10.1
tensorboard==2.12.0
tensorboard-data-server==0.7.0
tensorboard-plugin-wit==1.8.1
torch==1.13.1
torchsummary==1.5.1
torchvision==0.14.1
tqdm==4.65.0

念の為、以下に、全てのライブラリのバージョンも添付させて頂きます。
ご検討の程どうぞ、よろしくお願いいたします。

absl-py==1.4.0
alembic==1.10.2
asttokens==2.2.1
backcall==0.2.0
cachetools==5.3.0
certifi==2022.12.7
charset-normalizer==3.1.0
cmaes==0.9.1
colorlog==6.7.0
contourpy==1.0.7
cycler==0.11.0
decorator==5.1.1
dnspython==2.3.0
emmet-core==0.49.1
executing==1.2.0
fonttools==4.39.0
future==0.18.3
google-auth==2.16.2
google-auth-oauthlib==0.4.6
greenlet==2.0.2
grpcio==1.51.3
idna==3.4
ipython==8.11.0
jedi==0.18.2
joblib==1.2.0
jsonpatch==1.32
jsonpointer==2.3
kiwisolver==1.4.4
latexcodec==2.0.1
lightgbm==3.3.5
Mako==1.2.4
Markdown==3.4.1
MarkupSafe==2.1.2
matminer==0.8.0
matplotlib==3.7.1
matplotlib-inline==0.1.6
monty==2022.9.9
mp-api==0.30.10
mpmath==1.3.0
msgpack==1.0.5
networkx==3.0
numpy==1.24.2
nvidia-cublas-cu11==11.10.3.66
nvidia-cuda-nvrtc-cu11==11.7.99
nvidia-cuda-runtime-cu11==11.7.99
nvidia-cudnn-cu11==8.5.0.96
oauthlib==3.2.2
opencv-python==4.7.0.72
optuna==3.1.0
packaging==23.0
palettable==3.3.0
pandas==1.5.3
parso==0.8.3
pexpect==4.8.0
pickleshare==0.7.5
Pillow==9.4.0
plotly==5.13.1
prompt-toolkit==3.0.38
protobuf==4.22.1
ptyprocess==0.7.0
pure-eval==0.2.2
pyasn1==0.4.8
pyasn1-modules==0.2.8
pybtex==0.24.0
pydantic==1.10.6
Pygments==2.14.0
pymatgen==2023.3.10
pymongo==4.3.3
pyparsing==3.0.9
python-dateutil==2.8.2
pytz==2022.7.1
PyYAML==6.0
requests==2.28.2
requests-oauthlib==1.3.1
rsa==4.9
ruamel.yaml==0.17.21
ruamel.yaml.clib==0.2.7
scikit-learn==1.2.1
scipy==1.10.1
six==1.16.0
spglib==2.0.2
SQLAlchemy==2.0.5.post1
stack-data==0.6.2
sympy==1.11.1
tabulate==0.9.0
tenacity==8.2.2
tensorboard==2.12.0
tensorboard-data-server==0.7.0
tensorboard-plugin-wit==1.8.1
threadpoolctl==3.1.0
torch==1.13.1
torchsummary==1.5.1
torchvision==0.14.1
tornado==6.2
tqdm==4.65.0
traitlets==5.9.0
typing_extensions==4.5.0
uncertainties==3.1.7
urllib3==1.26.14
visdom==0.2.4
wcwidth==0.2.6
websocket-client==1.5.1
Werkzeug==2.2.3

from gan_sample.

h-s-dev avatar h-s-dev commented on September 26, 2024

上記の情報によるとtorch==1.13.1が使用されています。
こちらが動作を確認したのはtorch==1.8.1となりますので、
下記のrequirements.txtで環境を揃えて実行しても同様のエラーが発生するか、ご確認頂けますでしょうか?
https://github.com/ayukat1016/gan_sample/blob/main/chapter7/requirements.txt

1.13.1については別途調査してみます。

from gan_sample.

onozuka777 avatar onozuka777 commented on September 26, 2024

Google Colaboratoryのバージョンが新しくなり、Pytorch==1.8.1はインストールできない仕様になってしまったようです。なんとかプログラムが動くようにしたいのですが、どこを書き換えればよいかわからず、、、ご教示いただけますと幸いです。何卒、よろしくお願い申し上げます。

from gan_sample.

h-s-dev avatar h-s-dev commented on September 26, 2024

@onozuka777
現在、多忙につき対応までお待ちください

from gan_sample.

massy103 avatar massy103 commented on September 26, 2024

@onozuka777

お世話になっております🙇‍♂️
また、本書をご購入いただきありがとうございます。

共著者のものです。
ご指摘の通り、colabのpythonのバージョンが3.10になってしまったため、インストール可能なpytorchのバージョンが1.10からになってしまったようでした。

こちらの記事を参考にcolabのpythonバージョンを以下の手順で3.8に下げてみたところ、1.8.1のインストールに成功したので、こちらの手順を試してみていただけますと幸いです。

お手数おかけしますがよろしくお願いいたします!

!sudo update-alternatives --config python3

image

# pythonのバージョン確認
!python -V
# pipが消えてしまうため再インストール
!curl -kL https://bootstrap.pypa.io/get-pip.py | python
!pip -V
!pip install torch==1.8.1

image

from gan_sample.

h-s-dev avatar h-s-dev commented on September 26, 2024

対応が遅くなりまして申し訳ありません。
現状の環境でも動作するようにコードを修正しました

from gan_sample.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.