Coder Social home page Coder Social logo

koishi70 / style_migration_for_artistic_font_with_cnn Goto Github PK

View Code? Open in Web Editor NEW
225.0 8.0 50.0 6 MB

基于卷积神经网络的风格迁移,制造出带有艺术风格的字体(艺术字),部分效果可达PS水平,可以辅助设计人员做设计;Convolutional neural network based style migration to create a font with artistic style (WordArt), some effects up to PhotoShop level, it can assist designers to do design

License: MIT License

Python 100.00%

style_migration_for_artistic_font_with_cnn's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

style_migration_for_artistic_font_with_cnn's Issues

keras 张量计算梯度问题!!!求教

我用的tenserflow2.5.0,和python3.6,用keras计算梯度,但是出来下面问题
image
寻遍解决办法,大致只有个下图的回答,并没明确,所以有什么解决办法吗?谢谢
image

问题,求教!

图片
图片
我在ubuntu环境下做的实验,于是我把ubuntu系统字体库里的Ubuntu-R.tff,复制到了工作目录下,改了下代码中字体路径,这是我运行出来的结果,第一张是a,第二张是火,用的bamboo style,我并没有改动你的代码,不知道什么原因,结果居然没有丝毫style信息,而且中文字体显示不出来。
而且,我用windows的宋体字也试了一下,也是不行的,
能否直接拿一个字的图片作为输入
希望您帮忙看一下,谢谢!

OSError: cannot open resource

When I use anaconda environment to run this command, it appears error: cannot open resource. Can you help me out?

(ml) JichunMacBook-Pro:Style_Migration_For_Artistic_Font_With_CNN SpringCurry$ python neural_style_transfer.py ./example/fire.png .             
/Users/SpringCurry/anaconda3/envs/ml/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
Using TensorFlow backend.
Traceback (most recent call last):
  File "neural_style_transfer.py", line 171, in <module>
    smooth_times=smooth_times,noise=noise)
  File "neural_style_transfer.py", line 88, in char_to_picture
    font = ImageFont.truetype(font_dir, font_size)
  File "/Users/SpringCurry/anaconda3/envs/ml/lib/python3.6/site-packages/PIL/ImageFont.py", line 261, in truetype
    return FreeTypeFont(font, size, index, encoding, layout_engine)
  File "/Users/SpringCurry/anaconda3/envs/ml/lib/python3.6/site-packages/PIL/ImageFont.py", line 144, in __init__
    self.font = core.getfont(font, size, index, encoding, layout_engine=layout_engine)
OSError: cannot open resource

新手入门,运行代码提示用户警告,求助~

image

我下载了大神您的代码案例等等,然后设置了下载好的代码案例等等这个文件夹作为工作路径,看了下好像没有别的需要设置,我就直接去跑代码,提示出现警告,有点不太懂,望指点~

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.