jouvetg / igm_old Goto Github PK
View Code? Open in Web Editor NEWThe Instructed Glacier Model (IGM)
License: GNU General Public License v3.0
The Instructed Glacier Model (IGM)
License: GNU General Public License v3.0
I'm running the example "paleo-alps" and get this error:
Traceback (most recent call last):
File "igm-run.py", line 94, in <module>
glacier.animate_result('ex.nc','thk',save=True)
File "/home/bowen/igm/src/igm.py", line 3625, in animate_result
HTML(ani.to_html5_video())
File "/home/bowen/anaconda3/envs/igm/lib/python3.8/site-packages/matplotlib/animation.py", line 1266, in to_html5_video
self.save(str(path), writer=writer)
File "/home/bowen/anaconda3/envs/igm/lib/python3.8/site-packages/matplotlib/animation.py", line 1063, in save
with mpl.rc_context({'savefig.bbox': None}), \
File "/home/bowen/anaconda3/envs/igm/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/home/bowen/anaconda3/envs/igm/lib/python3.8/site-packages/matplotlib/animation.py", line 229, in saving
self.setup(fig, outfile, dpi, *args, **kwargs)
File "/home/bowen/anaconda3/envs/igm/lib/python3.8/site-packages/matplotlib/animation.py", line 315, in setup
self._w, self._h = self._adjust_frame_size()
File "/home/bowen/anaconda3/envs/igm/lib/python3.8/site-packages/matplotlib/animation.py", line 304, in _adjust_frame_size
self.fig.set_size_inches(w, h, forward=True)
File "/home/bowen/anaconda3/envs/igm/lib/python3.8/site-packages/matplotlib/figure.py", line 2961, in set_size_inches
manager.resize(*(size * self.dpi).astype(int))
File "/home/bowen/anaconda3/envs/igm/lib/python3.8/site-packages/matplotlib/backends/_backend_tk.py", line 506, in resize
self.canvas._tkcanvas.configure(width=width, height=height)
File "/home/bowen/anaconda3/envs/igm/lib/python3.8/tkinter/__init__.py", line 1646, in configure
return self._configure('configure', cnf, kw)
File "/home/bowen/anaconda3/envs/igm/lib/python3.8/tkinter/__init__.py", line 1636, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: invalid command name ".!canvas"
I searched it but cannot figure it out. Do you have any idea about this?
Just reporting what I had to do to get TF installed on my Linux Mint machine. The current doc has instructions for TF 2.8.0 and I encountered this problem when using mamba + conda-forge for all packages.
$ mamba install -y cudatoolkit=11.2 cudnn=8.1 -c conda-forge
$ CONDA_OVERRIDE_CUDA="11.2" mamba install -y tensorflow=2.11.0 tensorflow-gpu=2.11.0 -c conda-forge
Setting the CONDA_OVERRIDE_CUDA was important, and it did not work for TF 2.8.0 but it did for 2.11.0
With this at least I can run on CPU, but not yet on GPU, with error:
2023-05-12 13:06:22.925539: E tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:267] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
2023-05-12 13:06:22.925574: I tensorflow/compiler/xla/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (flappi-top): /proc/driver/nvidia/version does not exist
I'll investigate further and report back.
What the wiki suggests, 1. create an environment and 2. install mamba in it, worked. However, later it caused problems with dependencies (tensorflow, even matplotlib). My solution was to install mamba directly after conda in the base and then build the environment with mamba. This caused no complications with the packages. Installing mamba directly into the base is also strongly recommended by the mamba documentation.
Maybe someone has had similar or different experiences and can use my experience as a starting point if there are problems with the installation.
in the base:
mamba 1.4.1
environment:
python 3.10.11
tensorflow 2.11.0
and all other packages..
Hi Guillaume,
I was wondering why are Keras and Tensorflow installed with pip
and not conda
? ("Installing Python Packages" section of your README)
Installing with pip
in a conda
environment can lead to complex issues. And here, all the packages you install with pip
are available with conda`.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.