inflearn logo
강의

Course

Instructor

Introduction to Deep Learning with TensorFlow 2.0

Char-RNN implementation using TensorFlow 2.0

char-rnn 코랩 에러 ... 못보나요,, cpus는 너무 느려서

590

misoindc5494

1 asked

0

65 unique characters
FATAL Flags parsing error: Unknown command line flag 'f'
Pass --helpshort or --helpfull to see help on flags.
E0331 00:27:13.561940 139884619077440 ultratb.py:152] Internal Python error in the inspect module.
Below is the traceback from this internal error.

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/absl/app.py", line 156, in parse_flags_with_usage
    try:
  File "/usr/local/lib/python3.9/dist-packages/absl/flags/_flagvalues.py", line 652, in __call__
    raise _exceptions.UnrecognizedFlagError(
absl.flags._exceptions.UnrecognizedFlagError: Unknown command line flag 'f'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/IPython/core/interactiveshell.py", line 3553, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-6-c4a8a0bf2191>", line 170, in <cell line: 168>
    app.run(main)
  File "/usr/local/lib/python3.9/dist-packages/absl/app.py", line 300, in run
    try:
  File "/usr/local/lib/python3.9/dist-packages/absl/app.py", line 369, in _run_init
    logging.use_absl_handler()
  File "/usr/local/lib/python3.9/dist-packages/absl/app.py", line 216, in _register_and_parse_flags_with_usage
    original_argv = sys.argv if argv is None else argv
  File "/usr/local/lib/python3.9/dist-packages/absl/app.py", line 166, in parse_flags_with_usage
    sys.stderr.write('Pass --helpshort or --helpfull to see help on flags.\n')
SystemExit: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/IPython/core/ultratb.py", line 1101, in get_records
    return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
  File "/usr/local/lib/python3.9/dist-packages/IPython/core/ultratb.py", line 248, in wrapped
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/IPython/core/ultratb.py", line 281, in _fixed_getinnerframes
    records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
  File "/usr/lib/python3.9/inspect.py", line 1543, in getinnerframes
    frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
AttributeError: 'tuple' object has no attribute 'tb_frame'
---------------------------------------------------------------------------
UnrecognizedFlagError                     Traceback (most recent call last)
/usr/local/lib/python3.9/dist-packages/absl/app.py in parse_flags_with_usage(args)
    155   """
--> 156   try:
    157     return FLAGS(args)


13 frames


UnrecognizedFlagError: Unknown command line flag 'f'
During handling of the above exception, another exception occurred:

SystemExit                                Traceback (most recent call last)
    [... skipping hidden 1 frame]

SystemExit: 1
During handling of the above exception, another exception occurred:

TypeError                                 Traceback (most recent call last)
    [... skipping hidden 1 frame]

/usr/local/lib/python3.9/dist-packages/IPython/core/ultratb.py in find_recursion(etype, value, records)
    380     # first frame (from in to out) that looks different.
    381     if not is_recursion_error(etype, value, records):
--> 382         return len(records), 0
    383 
    384     # Select filename, lineno, func_name to track frames with

TypeError: object of type 'NoneType' has no len()

머신러닝 딥러닝 tensorflow

Answer 1

1

AISchool

안녕하세요~. 반갑습니다.

char-rnn을 colab 환경에서 실습해보고 싶으실 경우 아래에 제공드린 colab 실습 파일로 실습부탁드립니다.

https://colab.research.google.com/drive/1Lr-tdAWh6sJdmAcOCmimHOIaK54idw-t?usp=sharing

좋은 하루되세요~.

감사합니다.

 

22강 코드 call()메서드 is_training -> model(x,False)로 호출시 밸류에러 참고

0

48

1

선형 회귀 모델에 대해서 질문 있습니다

0

256

2

tf.keras.model.reset_states()

0

746

2

[질문]colab환경에서 텐서보드(TensorBoard)를 이용해서 학습과정 시각화(Visualization)하기강의 관련 질문

0

505

2

[질문]colab환경에서 tf.train.CheckpointManager API를 이용해서 파라미터 저장하고 불러오기 실행에 대한 질문

0

287

2

colab에서 구동 가능한 char-rnn 코드 관련 질문

0

221

1

안녕하세요 파이썬이랑 tensorflow 정확한 버전 알수있을까요?

0

250

1

colab 환경에서 Autoencoder 구현하였으나 결과가 보이지 않는 분들 참고사항

0

211

1

Mnist 에 keras를 통해 softmax를 활용한 regerssion error 발생

0

2099

2

GRU 리셋게이트, 포겟게이트 질문

0

260

1

ANN 구현

0

348

1

ANN으로 Mnist 숫자분류기 코드질문

0

294

1

ppt 12p 질문

0

383

1

keras에서 이미 정의된 모델을 가져와 학습할 경우

0

654

1

모델 코드 질문

0

370

1

코드 질문

0

280

1

ppt 10p

0

385

1

ppt 13p 추가 질문

0

258

1

ppt 9p 추가 질문

0

266

1

ppt 5p 질문

0

322

1

ppt 9p 질문

0

283

1

vanishing gradient

0

278

1

TensorFlow 2.0을 이용한 CIFAR-10 이미지 분류를 위한 CNN 구현 질문

0

260

1

텐서플로우 설치 오류

0

262

1