Code Monkey home page Code Monkey logo

Comments (3)

ConnorJL avatar ConnorJL commented on July 20, 2024

Hmm, it'd be helpful if you to tell me a bit more about what you were doing, how the files you were trying to convert look etc.

Off the top of my head, I'd say try changing the processes value at the top of the file to 1 and files_per to 10. Also double check your output dir is somewhere you can write to.

from gpt2.

CrackerHax avatar CrackerHax commented on July 20, 2024

Nope, still the same problem. I am trying to turn tv show scripts into tfrecords. The first time I tried it it worked (on 2 files) then it just never worked after that.

Also forgot to mention I am doing this in google colab with runtime set for python3 and TPU.

Here are my settings:

base_dir = "/content/gdrive/My Drive/gpt2/text2" # Path to where your .txt files are located
files_per = 175000 # 175000 ~ 200-300MB
name = "tv-scripts" # Name of output files will be name_i.tfrecords where i is the number of the file
output_dir = "/content/gdrive/My Drive/gpt2/textout"
log_dir = "logs"
files = glob.glob(os.path.join(base_dir, "*.txt"))
processes = 64 # Number of encoding processes to run
encoder_path = "/content/gdrive/My Drive/gpt2/encoder" # Path to encoder files
minimum_size = 25

had to change the 'files =' line because "**/*.txt" was not finding the files.

directories look writable:

$ls -lsa
total 28
4 drwx------ 2 root root 4096 Dec  8 06:02 encoder
4 drwx------ 2 root root 4096 Dec  8 06:13 GPT2
4 drwx------ 2 root root 4096 Dec  8 00:27 .ipynb_checkpoints
4 drwx------ 2 root root 4096 Dec  8 00:37 logs
4 drwx------ 2 root root 4096 Dec  8 00:27 text
4 drwx------ 2 root root 4096 Dec  8 00:28 textout

from gpt2.

CrackerHax avatar CrackerHax commented on July 20, 2024

Ok I see the problem... It was doing that because it couldnt overwrite the logs from the previous try. Deleting the logs caused it to work.

from gpt2.

Related Issues (20)

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.