Giter VIP home page Giter VIP logo

Comments (10)

elmer-garduno avatar elmer-garduno commented on May 22, 2024

Did you specified --output_dir, that seems to be the problem. I'll make sure to make it required.

from cloudml-samples.

suiyuan2009 avatar suiyuan2009 commented on May 22, 2024

I use

python preprocess.py --training_data fh-bigquery.reddit_comments.2015_12 \
                     --eval_data fh-bigquery.reddit_comments.2016_01 \
                     --predict_data fh-bigquery.reddit_comments.2016_02 \
                     --output_dir $GCS_PATH/preproc \
                     --project_id $PROJECT \
                     --cloud

in https://github.com/GoogleCloudPlatform/cloudml-samples/blob/master/reddit_tft/README.md.

from cloudml-samples.

elmer-garduno avatar elmer-garduno commented on May 22, 2024

Just by looking at the symptoms is $GCS_PATH defined on your current environment?

In other words were all these statements successful?

PROJECT=$(gcloud config list project --format "value(core.project)")
BUCKET="gs://${PROJECT}-ml"

GCS_PATH="${BUCKET}/${USER}/reddit_comments"

from cloudml-samples.

suiyuan2009 avatar suiyuan2009 commented on May 22, 2024
echo $GCS_PATH
gs://megvii-test-ml/dongziming/reddit_comments

from cloudml-samples.

elmer-garduno avatar elmer-garduno commented on May 22, 2024

Thanks for the information by any chance are you running tensorflow version 1.2?

from cloudml-samples.

suiyuan2009 avatar suiyuan2009 commented on May 22, 2024
>>> import tensorflow as tf
>>> tf.__version__
'1.2.0'
>>> 

I tried tf 1.1.0, error is same.

from cloudml-samples.

elmer-garduno avatar elmer-garduno commented on May 22, 2024

Hi @suiyuan2009, I debugged this issue on a clean environment, could you please try the following?

This ensures that the preprocessing code is always executed on a clean directory in case that's the problem.

JOB_ID="reddit_${USER}$(date +%Y%m%d%H%M%S)"
PREPROCESS_OUTPUT="${GCS_PATH}/${JOB_ID}"
python preprocess.py --training_data fh-bigquery.reddit_comments.2015_12
--eval_data fh-bigquery.reddit_comments.2016_01
--predict_data fh-bigquery.reddit_comments.2016_02
--output_dir "${PREPROCESS_OUTPUT}"
--project_id "${PROJECT}"
--cloud

from cloudml-samples.

elmer-garduno avatar elmer-garduno commented on May 22, 2024

One more thing could you please verify if your output bucket is regional?

from cloudml-samples.

elmer-garduno avatar elmer-garduno commented on May 22, 2024

Also if you could indicate us if you are running on Mac (OS X)?

from cloudml-samples.

elmer-garduno avatar elmer-garduno commented on May 22, 2024

Please take a look at #56, this should be fixed.

from cloudml-samples.

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.