Git Product home page Git Product logo

Comments (4)

tkim-snu avatar tkim-snu commented on August 18, 2024

Of course. However, some code modification is required.
First, follow the instructions in the README.
After that you need to modify the inference.ipynb file so that it can read the images you want.
Please note that we plan to upload additional code for this in the near future.

from glacnet.

KhushiGala avatar KhushiGala commented on August 18, 2024

We have tried to run the inference.ipynb file using google colab. Here's a link to the notebook: https://colab.research.google.com/drive/1P9QICcVD15aTXgOQOsa1xktH2C_ddigq?usp=sharing

I have mounted my google drive to the notebook, and a folder named "sample_test" in the drive contains the images that I want to use for testing. Each time I run the code, the output text seems to change but the images remain blacked out. All the necessary files - encoder, decoder, vocab pickle files and the json files are present in the drive.

In the screenshot below you can see the paths set for image_dir and other variables:

2020-08-25 (7)

The Output:
2020-08-25 (6)

The images in the sample_test folder are:

2020-08-25 (3)

from glacnet.

tkim-snu avatar tkim-snu commented on August 18, 2024

I added the 'test.ipynb' file for your case.
But I couldn't test it because I don't have your photo files.
Try generating text using the 'test.ipynb' file.
Please refer to the changed code below.

image_files = ['929665.jpg', '929669.jpg', '929673.jpg', '929678.jpg', '929689.jpg']
for i in range(5):
image = Image.open('sample_test/' + image_files[i]).convert('RGB')
images.append(image)
image = transform_image(image, transform)
image_tensor.append(image)

from glacnet.

KhushiGala avatar KhushiGala commented on August 18, 2024

We implemented test.ipynb and we could generate stories from random images. Thank you so much for helping us out.

from glacnet.

Related Issues (6)

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.