saugatkandel / ptychoSampling

Code for ptychography with tensorflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ptychography tutorial running wrong

CGao-STEM opened this issue · comments

Dear Saugatkandel

First, thank you for providing the tensorflow tutorial for the new leaners. I met a problem when I ran the ptychography.ipynb file.
It shows as below
image
I am researching ptychography as my PhD project but new to tensorflow. May I ask how to solve this problem?

Kind regards
Chuang

Hi Chuang,
Apologies for the late response---I just saw this issue.

I think you are using Tensorflow 2.x (which uses gradient tapes), whereas the code in this repo uses Tensorflow 1.x. You could try using it with Tensorflow 1.x.