BachiLi / diffvg

Differentiable Vector Graphics Rasterization
https://people.csail.mit.edu/tzumao/diffvg/
Apache License 2.0
902 stars 152 forks source link

Provide interactive (Colab) notebook with minimal working example (tensorflow) #38

Open GreenWizard2015 opened 2 years ago

GreenWizard2015 commented 2 years ago

I created a very simple notebook, it only installs the library and runs one of the examples: https://colab.research.google.com/drive/1Bnd0YI8ViGb3jDYxSGrSGmt5IcaC0GIz?usp=sharing

As you can see, the libdiffvg_tf_data_ptr_no_cxx11_abi.so is not created because the script does not find/detect Tensorflow. If you force its creation to start then a file will be created, but the error "undefined symbol: _ZTIN10tensorflow8OpKernelE" will appear.

Please provide an example of correct library installation with Tensorflow 2+ support.

henryleemr commented 2 years ago

Hello @GreenWizard2015 did you manage to find a solution? Also trying to get this to work on google Colab :/

v-a-s-a commented 2 years ago

The recently released CLIPasso project has a notebook installing and running dffvg: https://github.com/yael-vinker/CLIPasso/blob/main/CLIPasso.ipynb

That works for me. I believe they peg tensorflow or CUDA to an explicit, compatible version.